PageRenderTime 32ms CodeModel.GetById 20ms app.highlight 11ms RepoModel.GetById 0ms app.codeStats 0ms

/public/javascripts/jQuery-validationEngine-2.6.1/demos/demoValidationComplete.html

https://bitbucket.org/hamidrezas/melobit
HTML | 64 lines | 61 code | 3 blank | 0 comment | 0 complexity | 92aaa02306f006a4a048ac048ea000a3 MD5 | raw file
Possible License(s): AGPL-1.0
 1<!DOCTYPE html>
 2<html>
 3<head>
 4	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
 5	<title>JQuery Validation Engine</title>
 6	<link rel="stylesheet" href="../css/validationEngine.jquery.css" type="text/css"/>
 7	<link rel="stylesheet" href="../css/template.css" type="text/css"/>
 8	<script src="../js/jquery-1.6.min.js" type="text/javascript">
 9	</script>
10	<script src="../js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8">
11	</script>
12	<script src="../js/jquery.validationEngine.js" type="text/javascript" charset="utf-8">
13	</script>
14	<script>
15		jQuery(document).ready(function(){
16			jQuery("#formID2").validationEngine('attach', {
17				onValidationComplete: function(form, status){
18					alert("The form status is: " +status+", it will never submit");
19				}  
20			})
21		});
22	</script>
23</head>
24<body>
25    
26	<p>onValidationComplete stop the submit and let you handle the form after the validation</p>
27	<form id="formID2" class="formular" method="post" action="">
28		<fieldset>
29			<legend>
30				Phone
31			</legend>
32			<label>
33				+103-304-340-4300-043
34				<br/>
35				+1 305 768 23 34 ext 23
36				<br/>
37				+1 (305) 768-2334 extension 703
38				<br/>
39				+1 (305) 768-2334 x703
40				<br/>
41				04312 / 777 777
42				<br/>
43				01-47.34/32 56
44				<br/>
45				(01865)  123456
46				<br/>
47				<span>Phone : </span>
48				<input value="+1 305 768 23 34 ext 23 BUG" class="validate[required,custom[phone]] text-input" type="text" name="telephone" id="telephone" />
49			</label>
50		</fieldset>
51		<fieldset>
52			<legend>
53				OnlyLetter
54			</legend>
55			<label>
56				<span>only ascii letters, space and '</span>
57				<input value="this is an invalid char '.'" class="validate[required,custom[onlyLetterSp]] text-input" type="text" name="onlyascii" id="onlyascii" />
58			</label>
59		</fieldset><input class="submit" type="submit" value="Validate &amp; Send the form!"/><hr/>
60	</form>
61        
62        
63</body>
64</html>