-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjQuery.js
41 lines (36 loc) · 1.07 KB
/
jQuery.js
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
$('.loginBtn').click(function(){
$('.login').show();
$('.signUp').hide();
/* border bottom on button click */
$('.loginBtn').css({'border-bottom' : '2px solid #ff4141'});
/* remove border after click */
$('.signUpBtn').css({'border-style' : 'none'});
});
/* Show sign Up form on button click */
$('.signUpBtn').click(function(){
$('.login').hide();
$('.signUp').show();
/* border bottom on button click */
$('.signUpBtn').css({'border-bottom' : '2px solid #ff4141'});
/* remove border after click */
$('.loginBtn').css({'border-style' : 'none'});
});
function validation()
{
var id=document.f1.email.value;
var ps=document.fi.password.value;
if(id.lenght=="" && ps.lenght==""){
alert("user name and password fields are empty");
return false;
}
else{
if(id.lenght==""){
alert("user name is empty");
return false;
}
if (ps.lenght==""){
alert("password field is empty");
return false;
}
}
}