disabling submit button until all fields have values
$(function () {
$('#submits').attr('disabled', true);
$('#initial_5').change(function () {
if ($('#initial_1').val() != '' && $('#initial_2').val() != '' && $('#initial_3').val() != '' && $('#initial_4').val() != '' && $('#initial_5').val() != '') {
$('#submits').attr('disabled', false);
} else {
$('#submits').attr('disabled', true);
}
});
});
Also in JavaScript:
- json arrays
- sort data according to date in js
- javascript on hover
- how to set background automatically with my screen height
- add class javascript
- express limit based on ip
- select 2nd td jquery
- how to run cypress
- compare date and time in js
- switch statement in javascript
- date compare in js
- javascript add multiple items to array
- how to block special characters in javascript
- javascript remove last character in a string
- split the numbers js
- json remove "
- sleep javascript
- javascript extract number from string
- replace js
- javascript array column
- .classList
- jquery script tag source google
- find react version
- instanceof negation