Jquery select (Set selectedValue)

How to set selectedValue on select jquery

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

1 Like