jquery find command -


.find () How to find out whether the radio button is present in a div or not raise a warning

  & lt; Div id = "emp_form" & gt; & Lt; / Div & gt;  

You can use (or just one) and check it like this Are:

  if ($ ("# emp_form: radio"). Length == 0) {Warning ("No radio button found !, crap!"); }  

If you want to do something in this case, there are radio buttons:

  if ($ ("# emp_form: radio") Length & Gt ; 0) {// do something} other {warning ("no radio button found !, crap!"); }  

is optional $ ("# emp_form"). Search (": radio"). Length .


Comments