Dropdownlists - how to get the selectedIndex

Dropdownlists - how to get the selectedIndex

How do I make the below a jquery code. I'd like to be able to retreive the this.selectedIndex value. I don't know how to do that.



js:
I have a function f taking a parameter i

html:
I have:

<select onchange="f(this.selectedIndex)">
<option></option>
<option></option>
</select>