Sorry if this sounds naive, but I am just learning javascript/jquery in order to make some AJAX calls.

Suppose I have something like this:

Code:
<select id="series">
<option value="1" onclick="[ajax function]">First</option>
<option value="2" onclick="[ajax function]">Second</option>
<option value="3" onclick="[ajax function]">Third</option>
<option value="4" onclick="[ajax function]">Fourth</option>
<option value="5" onclick="[ajax function]">Fifth</option>
<option value="6" onclick="[ajax function]">Sixth</option>
</select>
and I want to send an ajax query when one of the options is selected and I want send the value of the "value" attribute along as a parameter for a server side php function. How do I create a jquery variable that is equal to that value?

Does something like this work?

Code:
value = $('#series option').attr('value');
How does it know which option tag to grab the value from? Does it automatically grab the one that is clicked on?

I can't really indicate ahead of time which option to grab as I don't know which will be clicked.

--Kenoli