Here is the HTML code:
HTML Form Builder
The answer already been accepted, I just write a short technique for the same purpose.
var fieldPair = ''; $(":input").each(function(){ fieldPair += $(this).attr("name") + ':' + $(this).val() + ';'; }); console.log(fieldPair);