-
Notifications
You must be signed in to change notification settings - Fork 0
/
validate.js
33 lines (28 loc) · 899 Bytes
/
validate.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
function validation(){
alert('hello');
var bid = document.submit.bid.value;
var name = document.submit.name.value;
var password = document.submit.authors.value;
var edition = document.submit.edition.value;
var status = document.submit.status.value;
var quantity = document.submit.quantity.value;
var department = document.submit.department.value;
var msg='';
if (bid.trim() == '') {
alert('Enter bid');
document.submit.bid.focus();
return false;
} else {
msg += 'bid is ' + bid + '<br>';
}
}
function openNav() {
document.getElementById("mySidenav").style.width = "300px";
document.getElementById("main").style.marginLeft = "300px";
document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
document.body.style.backgroundColor = "#024629";
}