Author Name Chris Fidao Social Media Image by https://annieruygtillustration.com/ The deal with React is that I don't want it, but I'm jealous of the quality of React components.

When combined with a text input, we get a list of stuff that a person can select.

If you select an option from the list of possible values, it will update the text input's value.

// If we find the selected option, grab the // machine-readable ID from the data-value attribute if (selected) { let id = selected.dataset.value console.log('selected value is:', id)} }
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners