serialize() with parameter?
Hi,
As the docs say, "For a form element's value to be included in the serialized string, the element must have a name
attribute."
I think it would be very useful to be able to specify a propery for the serialize method, so that it serializes a different property than name.
In ASP.NET, the server controls have an annoying name, generated by the framework.
example:
<input type="text" readonly="readonly" class="required for-report clickable hasDatepicker valid"
for-query-string="value-for-querystring" id="ctl00_content_calFromDate" name="ctl00$content$calFromDate">
$("#form").serialize("for-query-string");
What do you think of this?
Daniel