Programming Tip Of The Day #38: Difference between Datalist and Select Elements in HTML

Welcome, all we will see the HTML Datalist and Select Tag: Difference between Datalist and Select Elements in HTML in Hindi. Think of it as the difference between a requirement and a suggestion. For the select element, the user is required to select one of the options you’ve given. For the datalist element, it is suggested that the user select one of the options you’ve given, but he can actually enter anything he wants in the input. Edit 1: So which one you use depends on your requirements. If the user must enter one of your choices, use the select element. If the user can enter whatever, use the datalist element. Datalist includes autocomplete and suggestions natively, it can also allow a user to enter a value that is not defined in the suggestions. Select only gives you pre-defined op

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on TumblrShare on Google+Digg thisShare on LinkedInPin on PinterestShare on VKShare on RedditPrint this pageEmail this to someone
Flattr the authorShare on StumbleUponShare on YummlyBuffer this page

Leave a Reply

Your email address will not be published. Required fields are marked *