Regular expression for validating web site url
A user can select only one option from a drop-down list and therefore it resembles just the radio button in its functionality and not the checkboxes, right?Well, this is where the concept of multiple selections in a select box comes into play.
To enable multiple selections, just include ‘multiple’ as an attribute.Having drop downs on our web page enhances the overall quality and design on the screen.A drop-down thus works as an alternative and in specific cases, a better option, as compared to radio buttons and checkboxes. Did we say an alternative to both radio buttons and checkboxes?For instance, if we are developing a website that only permits users in the age group 18-40.We can have the birth year as a sliding input range with the lowest value being 1986 and the highest being 1998.
Search for regular expression for validating web site url:
Now, in order to select multiple options, you have to add a size attribute also to the select element.