How to join all inputs.
var inputs = [];
$('select, input[type=radio][checked=checked], input[type=text], input[type=hidden]', $("form")).each(function(){
inputs[$(this).attr('name')] = $(this).val();
});
alert(inputs.join('&'));
Комментариев нет:
Отправить комментарий