<p>Using jQuery, how do you check if there is an option selected in a select menu, and if not, assign one of the options as selected.</p>

<p>(The select is generated with a maze of PHP functions in an app I just inherited, so this is a quick fix while I get my head around those :)</p>

Look at the
selectedIndex
of the
```
select
```
element. BTW, that's a plain ol' DOM thing, not JQuery-specific.