selectValue equivalent on browsers other than IE
|
06-04-2014, 05:39 AM
Post: #1
|
|||
|
|||
selectValue equivalent on browsers other than IE
I want to script selecting a value in the dropdown list. As per the doc
selectValue id=email label=foo@bar.com would work. However how do I do the same for Chrome/FF? |
|||
06-05-2014, 12:26 AM
Post: #2
|
|||
|
|||
RE: selectValue equivalent on browsers other than IE
Use exec combined with plain old JS is probably your best bet. That way you can debug it locally in dev tools to make sure it works.
Something like: exec document.getElementById("email").selectedIndex = 5 |
|||
06-05-2014, 03:27 AM
Post: #3
|
|||
|
|||
RE: selectValue equivalent on browsers other than IE
(06-05-2014 12:26 AM)pmeenan Wrote: Use exec combined with plain old JS is probably your best bet. That way you can debug it locally in dev tools to make sure it works. Thank you for that pointer. That works! Appreciate your prompt response as always |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)