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:
- var newYearArray = $('#chart_submit :year').fieldValue();
- alert("Not going to get here, I bet");
- 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:
- <select class="element select small" id="year" name="year">
- <option value="2011" selected="selected">
- 2011
- </option>
- <option value="2010">
- 2010
- </option>
- etc.
- </select>
Any suggestions?
Bill