jquery 팝 업 대화 상자

2156 단어 jquery
//      jquery js
<script src="<c:url value="/script/jquery/jquery-1.6.1.min.js"/>">
	$(function(){
		$('#dialog1').dialog({
			autoOpen: false,
			width: 300,
			buttons: {
				"  ": function() {
					if($("#accountName").val().length < 4){
						alert("    4 ");
						return ;
					}
					$('#form1').submit(); 
				}, 
				"  ": function() { 
					$(this).dialog("close"); 
				} 
			}
		});



<td><a href="#!" onclick="$('#dialog1').dialog('open');" class="btn_zhadd">
<img src="../resources/gd/images/btn_adduser.jpg" alt="" /></a></td>

<div id="dialog1" title="    " align="center">
	<form id="form1" action="<c:url value="/gd/account-add.action"/>" method="post"> 
		   :<input id="accountName" name="accountName" type="text"/><br/>
		   :<select name="state" id="state" style="width: 150px;">
						<option value="1" selected="selected" >  </option>
					    <option value="0" >  </option>
				</select>
				<br/>
		    :<select name="account_type" id="account_type" style="width: 150px;">
						<option value="1" selected="selected" >    </option>
					    <option value="2" >10000   </option>
				</select>
				<br/>
		    :<select name="group_admin" id="group_admin" style="width: 150px;">
						<option value="0" selected="selected" > </option>
					    <option value="1" > </option>
				</select>				
				
				

	</form>

좋은 웹페이지 즐겨찾기