jquery form 폼 제출 성공,리 셋 방법

먼저 다운로드 
jquery-form.js  
[#assign security=JspTaglibs["http://www.springframework.org/security/tags"] /]



    
    
        
    
    
    
    [#include "/console/include/resources.ftl" /]
	
		$(document).ready(function(){
			//    
			$("#gagForm").validate({
				onfocusout: function(element){
			        $(element).valid();
			    }
			});
		});
		
		//    
		<span style="font-size:18px;color:#ff0000;"><strong>function confirm(){
			var form = $("form[name=gagForm]");  
	        var options  = {    
	            url:'gagAccount.ct',    
	            type:'post',    
	            success:function(data)    
	            {    //       
	                 $bbs.common.dialog.showMessageGag(data.content); 
	            }    
	        };    
	        form.ajaxSubmit(options); 
		} </strong></span>
		
		function cancel(url){
			$bbs.gag.ungag.cancel(url);
		}
	
    



    
    [#include "/console/include/header.ftl" /]
    
	
	
	
[#include "/console/include/nav.ftl" /]

name="gagForm" id="gagForm" action="gagAccount.ct" method="post">
[#include "/console/include/footer.ftl" /]

좋은 웹페이지 즐겨찾기