473,672 Members | 2,723 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to validate/confirm radio buttons?

1 New Member
Expand|Select|Wrap|Line Numbers
  1. <tr>
  2.     <td id="entry">Level of Entry:<input type="radio" name="level" value="GCSE" />GCSE</td>
  3.     <td><input type="radio" name="level" value="AS"  />AS</td>
  4.     <td><input type="radio" name="level" value="A2"  />A2</td> 
  5. </tr>
How can i validate this so when user clicks on a radio button it will pop up with a confirm box confirming if the level of entry is either GCSE, AS OR A2?
Feb 7 '13 #1
1 1727
Dormilich
8,658 Recognized Expert Moderator Expert
why should you want a confirm box for that, the user doesn’t have any other choice anyways?
Feb 7 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
6153
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there are no instructions on how to make checkboxes and radio buttons required. I've tried adding these to my form, but I'm having no luck. Anyone know how to add radio buttons and checkboxes using the existing code mentioned on the url? Thank you!
10
13445
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group related to checkboxes. Thanks!!!
6
2036
by: sakms | last post by:
I am attempting to validate radio buttons in Netscape with JavaScript. Everything works excellent in Explorer, but refuses to work in Netscape (all versions). =========== JAVASCRIPT CODE ======================== function ValidateTest() {
2
1446
by: Jeff Sandler | last post by:
I've seen several messages in this group with this question and no reply. Simply stated, how do you send the status of a group of radio buttons to a JavaScript function? I have a large project that needs this. Since I cannot figure it out, I wrote a small page to experiment with it. Here it is. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html;...
1
1601
by: Jay | last post by:
I need to validate 21 sets of radio buttons before submission to the server for calculation and storage. Is it best to validate on the client side using javascript or to validate on the server using the code behind vbscript. It seems that natural to validate before submission. If javascript is the best then how do I the variables. I noticed some javascript that was dynamically created which looks like the following: ...
0
1613
by: LavanyaM | last post by:
Hi, In our app we need to create dynamic radio buttons. There should be three radio buttons and this set is dynamic accroding to the data this is my code: <th width="5%" class="twolbcolors"><html:radio property="button" value="confirm"></</html:radio></th> <th width="5%" class="twolbcolors"><html:radio property="button" value="wait"></html:radio></th> <th width="5%"...
5
6691
by: satyabhaskar | last post by:
hi all, In my web page i have created radio buttons dynamically on to the page .....following is my code string Course, Semester, Section; int rowsCount; string con = ConfigurationManager.ConnectionStrings.ConnectionString; protected void Page_Load(object sender, EventArgs e) { try
6
2295
by: lolodede | last post by:
i want to dont let the user submit the form unless they answer these two radio buttons questions but i dont why isnot working the code unction checkForm(obj) //This fuction shows that the user need to answer Question one { var el = document.forms.elements; for(var i = 0 ; i < el.length ; ++i) { if(el.name == "att") { var radiogroup = el.name]; var itemchecked = false; for(var j = 0 ; j < radiogroup.length ; ++j) {...
3
1753
by: 1051109210 | last post by:
<table class="special3" align="left" width="75%" height="65%" > <form> <table width="50%" align="center"> <tr align="right"> <td></td> <td><a href="http://geocities.com/blhc_69/testingignore.html">Logout</a></td> </tr>
5
3159
fieryscream
by: fieryscream | last post by:
This is the javascript code that i have for validating a form, it raises error if the user puts in invalid information. The problem im having is when i enter: /* if(title.checked=false){ inlineMsg('radio', 'You must select a title.',2); return false; */ it brakes the code, but when i comment out the rest works fine????? function validate(form) { var name = form.name.value; var email = form.email.value;
0
8423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8947
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8851
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8645
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8699
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2097
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1842
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.