0
我想通過複選框提交一個帶有malsup表單插件的表單,但我無法做到這一點,我發現類似的,說要做以下事情,但我不能通過選項。有沒有人做過類似的事情?jQuery Malsup提交複選框
//Check SMS Credits
var checksmscredits = {
target: '#responsecredits',
beforeSubmit: showRequest,
url: 'exec.php?action=checksmscredits',
success: function() {
jQuery('.loaders').hide();
}
};
jQuery('#checksmscredits').ajaxForm(checksmscredits);
<form id="checksmscredits" method="post" action=""><p><span class="pagedesc"><input type="checkbox" name="sms" onclick="submit()" value="1" /> Text Your Message<br /></span></p></form><div id="responsecredits"></div>
這是我在下面的鏈接 submit form using ajaxform on checkbox click
$('form.date-response input[type=checkbox]').live('click', function(){
$(this).parent('form').ajaxForm().submit();
});