Hi,
I am having problems serializing a form:
<div id="create_country_pane" style="display:none;">
<form id="country_form">
<table>
<tr><td>Name:</td><td><input type="text" name="name" id="country_name_input"
size="56"/></td></tr>
<tr><td>Population:</td><td><input type="text" name="population"
size="46"/></td></tr>
</table>
<input type="button" value="Create Country" onClick="test('country_form')"/>
</form>
</div>
<script type="text/javascript">loadManagementControls()</script>
<script>
function test(form) {
var queryParameters = $(form).serialize();
$("outputSpan").innerHTML = queryParameters;
}
</script>
When I select the "Create Country" button, the "outputSpan" innerHTML becomes
"name=&population=". (Of course, I have entered values into the text inputs.)
Why are the form field values being left out? (I have this working properly in
another page, but I can't find the difference.)
...Mike
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com