Mega Code Archive

 
Categories / JavaScript Tutorial / JQuery
 

Finds all inputs of type radio within the first form in the document

< html>   <head>     <script type="text/javascript" src="js/jquery-1.3.2.js"></script>     <style type="text/css">         .changeP { font-weight: bold; color:red;}     </style>     <script type="text/javascript">    $(document).ready(function(){      alert($("input:radio", document.forms[0]).length);    });     </script>   </head>   <body>    <form>       <input type="radio" value="Option">    </form>   </body> </html>