dhanangpratama
2/12/2018 - 11:45 PM

Get All Fields and Save to Object jQuery

var fields = {};

$('#formID').find(":input").each(function() 
{
    if ( this.tagName !== 'BUTTON' )
        fields[this.name] = $(this).val();
});