commit
08f5522e62
1 changed files with 10 additions and 1 deletions
|
@ -14,12 +14,21 @@
|
||||||
className: className
|
className: className
|
||||||
};
|
};
|
||||||
|
|
||||||
$('input').each(function() {
|
$('input:not([type=checkbox])').each(function() {
|
||||||
var key = $(this).attr('name');
|
var key = $(this).attr('name');
|
||||||
var value = $(this).val();
|
var value = $(this).val();
|
||||||
args[key] = value;
|
args[key] = value;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('input[type=checkbox]').each(function() {
|
||||||
|
var key = $(this).attr('name');
|
||||||
|
var value = $(this).val();
|
||||||
|
|
||||||
|
if($(this).is(":checked")) {
|
||||||
|
args[key] = value;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$('select').each(function() {
|
$('select').each(function() {
|
||||||
var key = $(this).attr('name');
|
var key = $(this).attr('name');
|
||||||
var value = $(this).val();
|
var value = $(this).val();
|
||||||
|
|
Loading…
Add table
Reference in a new issue