Jquery动态更改form的action

url = "choose.jsp?bookcaseId="
								+ encodeURI(encodeURI($
										.trim(data.checkBill.bookShelfNo)))
								+ "&result=" + data.checkBill.checkbillno
								+ "//" + data.checkBill.checkbillid;
     // form2是form的ID
          $("#form2").attr("action", url);

你可能感兴趣的:(jquery,jsp)