0
当一个复选框被选中时,我想提交表单。不过,我需要包含在我的提交按钮中的参数成为请求的一部分。jQuery的提交表单与事件变化的按钮
这段脚本提交表单,但没有使用按钮。我猜是因为jquery以其他方式提交。
$(e.target).find("input[type='radio']").attr("checked", true)
$(".edit_booking").submit()
我试图指向了jQuery包含PARAMS的按钮,通过它的ID,并使用一个click事件,但是这也不管用。
$(e.target).find("input[type='radio']").attr("checked", true)
$("#bookings_next").click()
位的形式为:
<form novalidate="novalidate" class="simple_form edit_booking" id="edit_booking_9486" action="/venues/plymouth/bookings/9486" accept-charset="UTF-8" method="post">
.............
<input type="submit" name="forward_button" value="Next step" id="bookings_next" />
非常感谢