Jump to content

JS command that selects an option


weber

Recommended Posts

then it should write "The selectedIndex property returns the index of the selected option in a dropdown list or sets the index of an option in a dropdown list as selected"
No, because that would be redundant. It's correct as is- the effect is described in both contexts appropriately in the original text. The error is in your reading comprehension, not in the command description.
Link to comment
Share on other sites

something else, why do I have to make a loop for the JS to read all the entries, can it just read them as the webpage loads? and me simply make the JS point to the right entry, if it exists?
How would you know which one was selected if you don't test for it?
Link to comment
Share on other sites

I think that he already knows which one he wants, he just want's to have the whole process automated for him.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...