.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
satyapriyanayak
SP
Sambanthamoorthy
Swati Kadam
Ashutosh Jha

Home >> Code Snippets >> Javascript >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

How to Use Validate Radio Button Using JavaScript

Posted By:NATHAN ISRAEL       Posted Date: October 06, 2012    Points: 40    Category: Javascript    URL:   

How to Use Validate Radio Button Using JavaScript
 

<html>
    <head><title>Test Your Skill Using Alert Box</title></head>
    <body>
        <script language="JavaScript">
        <!--
            function alert_one()
            {
                alert("Wrong Try Again");
            }
            
            function alert_true()
            {
                alert("Correct Well Done");
            }
        //-->
        </script>
        
            <p> 01 . Which tag is use to Insert Javascript In HTML Document.</p>
            <p>
                <form>
                <input type="radio" name="tag" value="1_style" onclick="alert_one()"> &lt style &gt <br>
                <input type="radio" name="tag" value="2_style" onclick="alert_one()"> &lt javascript &gt <br>
                <input type="radio" name="tag" value="3_style" onclick="alert_true()"> &lt script &gt <br>
                <input type="radio" name="tag" value="4_style" onclick="alert_one()"> &lt type &gt
                </form>
            </p>
        
        
    </body>
</html>

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend