Thursday, December 8, 2011

How to generate a POST query string from form inputs with jQuery

This is a useful function to populate the data property of the jQuery Ajax method when using post.

1 comment:

  1. Note that this is mainly a blueprint. You should had some type of mechanism for radios or checkboxes, such as:

    if(i.attr('type')=='checkbox' && i.attr('checked'))

    ReplyDelete

Note: Only a member of this blog may post a comment.