$('#your-dailog-id').on('show.bs.modal', function (event) {
var link = $(event.relatedTarget);// Link that triggered the modal
var cURL= link.data('url');// Extract info from data-* attributes
$("#delUserform").attr("action", cURL);
});
如果试图更改常规页上的表单操作,请使用以下代码
$("#yourElementId").change(function() {
var action = <generate_action>;
$("#formId").attr("action", action);
});