check radio button is checked jquery
$(document).ready(function(){
$('#submit_button').click(function() {
if (!$("input[name='name']:checked").val()) {
alert('Nothing is checked!');
return false;
}
else {
alert('One of the radio buttons is checked!');
}
});
});
Also in JavaScript:
- what is adapter.js
- node js interview questions
- how to format json file in vs code
- javascript element by class
- javascript includes
- how to scroll down to the bottom of a div using javascript
- how to use the match function in javascript for regex
- node send file
- connect nodejs to mariadb
- date difference
- convert to float in javascript
- react font awesome
- getpermutation js recursion
- what is local storage and session storage in javascript
- how to update node modules
- js redirect page
- string comparison in javascript
- nodejs map
- refresh javascript using require
- jsx-a11y/alt-text
- Uncaught TypeError: jQuery(...).jqGrid is not a function
- How can I upload files asynchronously
- javascript check if element is visible on screen
- align text center react native