Amministrazione trasparente

html select data attribute

the form data after the form is submitted (if you omit the Sure, you coul… Each elements to create separate groups of options inside the dropdown. Here's an example for setting and retrieving the attribute "data-foo": If you have not used an HTML5 data attribute before, then you should read this. to access it, remove the data-at the beginnig of the attribute. What if you also needed to store the restaurant idto see whi… So change your code to this. autofocus This Boolean attribute lets you specify that a form control should have input focus when the page loads. Input and Select. With data-* attributes, you get that on/off ability plusthe ability to select based on the value it has at the same specificity level. Any attribute on any element whose attribute name starts with data- is a data attribute. Tip: Always add the