-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
44 lines (42 loc) · 724 Bytes
/
script.js
File metadata and controls
44 lines (42 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$(document).ready(function(){
$("#inputName").blur(function(){
var text=$(this).val();
if(text.length<4)
{
$("#name1").show();
}
else{
$("#name1").hide();
}
});
$("#inputNumber").blur(function(){
var num=$(this).val();
if(num.length!==10)
{
$("#number1").show();
}
else{
$("#number1").hide();
}
});
$("#inputPlace").blur(function(){
var place=$(this).val();
if(place.length<4)
{
$("#place1").show();
}
else{
$("#place1").hide();
}
});
$("#Comments").blur(function(){
var comment=$(this).val();
if(comment.length<=0)
{
$("#comment1").show();
}
else{
$("#comment1").hide();
}
});
});22