C# Tutorials and offshore development in India
Tutorials Resources Forum Reviews Communities Interview Jobs Projects Training Your Ad Here


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Javascript »

Simple Quiz Concept using JavaScript


Posted Date: 18 Jul 2009    Resource Type: Code Snippets    Category: Javascript
Author: R.Jaya kumar (JK)Member Level: Diamond    
Rating: 1 out of 5Points: 6





Description:




Here I have Implemented simple Quiz Concept. When we select option once then it is disabled and cannot be accessed another.




< html xmlns="http://www.w3.org/1999/xhtml" >
< head runat="server" >
< title > Untitled Page< /title >
< script >
function Test1()
{
var q1=document.getElementById("RadioButton1").checked;
var q2=document.getElementById("RadioButton1").checked;
var q3=document.getElementById("RadioButton1").checked;
if(q1==true || q2==true || q3==true)
{
document.getElementById("RadioButton1").disabled = true;
document.getElementById("RadioButton2").disabled = true;
document.getElementById("RadioButton3").disabled = true;
document.getElementById("bt1").disabled = true;
}
}
< /script >
< /head >
< body >
< form id="form1" runat="server" >
1.Which Software Type Foxrpo?< br / >
< br / >
< asp:RadioButton ID="RadioButton1" runat="server" GroupName="GltAmt" Text="Application" / >
< asp:RadioButton ID="RadioButton2" runat="server" GroupName="GltAmt" Text="Package" / >

< asp:RadioButton ID="RadioButton3" runat="server" GroupName="GltAmt" Text="Language" / >
< br / >
< br / >
< br / >

< input type ="button" runat ="server" value ="Click Answer"
onclick ="Test1();"
id="bt1" / >

< /form >
< /body >
< /html >



Responses to the resource: "Simple Quiz Concept using JavaScript"

No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Quiz Concept  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: To Validate multiline textbox
Previous Resource: TextBox focus and blur event
Return to Discussion Resource Index
Post New Resource
Category: Javascript


Post resources and earn money!
 
More Resources




About Us    Contact Us    Privacy Policy    Terms Of Use