boottstrap modal 전송 값

6192 단어 bootstrap
공유 해 주 셔 서 감사합니다.http://blog.csdn.net/baalhuo/article/details/51178154











    









	 list = (List) ht.getAttribute("list");
			//	request.setAttribute("list", list);
		}
	%>
	


${info.id} ${info.studentNo} ${info.password} ${info.studentName} ${info.studentSex}
function editInfo(obj) { var id = $(obj).attr("id"); var stuno = document.getElementById("table").rows[id].cells[1].innerText; var pass = document.getElementById("table").rows[id].cells[2].innerText; var name = document.getElementById("table").rows[id].cells[3].innerText; var sex = document.getElementById("table").rows[id].cells[4].innerText; var b = new Base64(); pass = b.decode(pass); $('#stuno').val(stuno); $('#pass').val(pass); $('#stuname').val(name); if (sex == ' ') { document.getElementById('women').checked = true; } else { document.getElementById('man').checked = true; } $('#update').modal('show'); } function update() { var stuno = $('#stuno').val(); var pass = $('#pass').val(); var name = $('#stuname').val(); var sex = $('input:radio[name="sex"]:checked').val(); $.ajax({ type : "post", url : "update.do", data : "stuno=" + stuno + "&pass=" + pass + "&name=" + name + "&sex=" + sex, dataType : 'html', contentType : "application/x-www-form-urlencoded; charset=utf-8", success : function(result) { location.reload(); } }); } function delInfo(obj) { if (confirm(" ?")) { var id = $(obj).attr("id"); var stuNo = document.getElementById("table").rows[id].cells[1].innerText; $.ajax({ type : "post", url : "del.do", data : "studentno=" + stuNo, dataType : 'html', contentType : "application/x-www-form-urlencoded; charset=utf-8", success : function(result) { $(".table tr:eq(" + id + ")").remove(); } }); } } Contact GitHub API Training Shop Blog About © 2017 GitHub, Inc. Terms Privacy Security Status Help

좋은 웹페이지 즐겨찾기