The selected attribute in HTML is used to specify which option should be by default selected when the page loads This is a boolean attribute The option that is having the I want to programmatically create a selected HTML select option using Javascript (not jQuery) What are the merits of creating it by setting the attributes as follows var option =The selected attribute allows you to set one of your lines as the default This is a good technique to speed up data entry if the majority of visitors are likely to select the same option
Jquery Select Option How Does Jquery Select Option Works Examples
