Forms Plugin filed Value

Forms Plugin filed Value

I really like the forms plugin by malsup, but cannot get the field value method  to work on my dropdown menus.

I call it with:

  1. var newYearArray  = $('#chart_submit :year').fieldValue();
  2.     alert("Not going to get here, I bet");
  3.     var newYear = newYearArray[0];

and it fails.  fieldValue is looking for an html elment (e.g. checkbox, radio, etc.), but my form (generated by a forms generator called MachForms), looks like this in what I think is the relevant part:

  1. <select class="element select small" id="year" name="year">
  2.                             <option value="2011" selected="selected">
  3.                                 2011
  4.                             </option>
  5.                             <option value="2010">
  6.                                 2010
  7.                             </option>
  8.                               etc.
  9.                         </select>

Any suggestions?

Bill