how to use Bootbox with my jQuery Validation -


i trying jquery validation plugin work bootbox.js.

i show message bootbox instead error label. here code

   $().ready(function() {  	// validate comment form when submitted  	$("#mainform").validate({  		debug: true ,  		rules: {		  		    idmail: {  			required: true,  			minlength: 7,  			email: true  		    } ,  		    idnome: {  			required: true,  			minlength: 2  		    }   	         },  		 messages: {  			idmail: "please insert valid mail",  			idnome: "please insert name"  		 }  	});	  });   
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>  <script src="http://cdn.jsdelivr.net/jquery.validation/1.15.0/jquery.validate.min.js"></script>    <meta charset="utf-8">  <title>sets validation form, checks if form valid when clicking button.</title>  <link rel="stylesheet" href="http://jqueryvalidation.org/files/demo/site-demos.css">  </head>  <form id="mainform">        email : <input type="text"  name="idmail" > <p>         name : <input type="text"  name="idnome" id="idnome">                  <input type="submit" value ="invia">  </form>


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -