Check selected element - Jquery

Check selected

Snippet Code


  
Rate this page :
  [ 0 votes]

Check the option element is selected or not

<script type="text/javascript"> $("#ele").find('option:selected'); alert("selected"; </script> <input type="radio" id="ele">Male <input type="radio" id="ele">Female

Tags


Ask Questions

Ask Question