Jquery select (Set selectedValue)


#1

How to set selectedValue on select jquery


#2

I believe selectedValue() is a getter only, not a setter. That is, it only returns a value; you can’t set one using it.

To set an item as selected, use setIndex(n), which accepts argument n. See the Select wiki page or the jQuery Select sample project for more info.

Kind regards,
Doug