javascript - Loop in html table and check if a radio is selected -


i want javascript or jquery function searches in html table , if no radio selected notify user.i have table id , don't know radio id(s).

you can use is() returns boolean:

if (!$('table :radio').is(':checked')) {         alert('no radio button selected');     } 

if @ least 1 radio button checked, won't fired alert()


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -