Hi, my site has a drop down menu on it and i am using a JS script to display the chosen text from the drop down menu at the bottom of a page… my question is… the JS script reads the text in the value=“” below and not the text in between the <option> tags
<option value=“sample_text”>Sample Text</option>
Is it ok to display normal text (it is not 2 words instead of 1) in the value=“” for example <option value=“Sample Text”>Sample Text</option>
I think I used .text for the time where I wanted to do something with the [selectedIndex], and not .value. .value I used when I just needed to know which option was chosen in order to do something else unrelated to the text in the option.