required false jquery
if(val == 'other')
{
$('#amount1').show().prop('required','true');
}
else
{
$('#amount1').hide().removeAttr('required');
}
Also in JavaScript:
- Javascript compare two dates
- print in javascript
- sort array of objects javascript by value
- jquery form serialize object
- javascript program to find leap years between two years
- simple return data jquery
- removed spaces in string js
- how to trigger an event on reload js
- how to check if a string has only alphabets in javascript
- document.queryselector picks first or last
- how to set input of time type to current time on initialization
- javascript name capitalization
- dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.66.dylib Referenced from: /usr/local/bin/node Reason: image not found
- react object
- javascript detect dark mode
- javascript change color of text input
- codeceptjs "waitForClickable"
- how to calculate balance automatically using javascript and php using cash paid
- redux form make field required
- javascript genreate number id
- react native exo player build errior resize mode stringdef contextcompat
- javascript es6 class
- javascript example code
- datatables clear table