473,473 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

checkboxes with radio buttons help!

I am creating a search engine and here is what i have so far..

<form class="complex-form" name="searchForm" method="post"
action="Directory.asp">
<TABLE border="1" cellspacing="2" summary="Search Form">
<TR>
<TD rowspan="3"><FONT size ="+3" COLOR=blue
face=arial><b>JIFFY</B></FONT>
<FONT size="+2" color="#CCCCCC"
face=arial><B>Search</B></FONT></TD>

<TD><center><input type="radio" name="SearchTypeCon_NumAndJON"
Value="Contract" checked> Contract Number
<input type="radio" name="SearchTypeCon_NumAndJON"
Value="JON"> Job Order Number (JON)
</center></TD>
</TR>
<TR>
<TD><center><label for="SearchBox"></label>
<input TYPE="text" NAME="SearchBox" id="SearchBox" SIZE="55"
MAXLENGTH="55" value="<%=request("searchwords")%>">
<input type="Submit" Value="Search" class=button>
</center></TD>
</TR>
<TR>
<TD><center><input type="checkbox" name="SearchTypeTitle" disable
Value="Title"> Title
<input type="checkbox" name="SearchTypeScope" disable
Value="Scope"> Scope
<input type="checkbox" name="SearchTypeObjective" disable
Value="Objective"> Objective
<input type="checkbox" name="SearchTypeApproach" selected disable
Value="Approach"> Approach
</center></TD>
</TABLE>
</form>
my question is how do i make it so when someone checks off a checkbox,
the radio button becomes deselected?

Jimmie

Jul 23 '05 #1
2 1986

Not sure on what you mean by deselect a radio button, if you have more
than 1 with the same name, I'd assume you want 1 selected, but the way to
do it is by using its .checked property, true for checked adn false for
unchecked, document.FORMNAME.RADIONAME[2].checked=false; will uncheck
the 3rd radio button in that collection.

Danny
On Wed, 29 Jun 2005 12:50:08 -0700, <ji******@hotmail.com> wrote:
I am creating a search engine and here is what i have so far..

<form class="complex-form" name="searchForm" method="post"
action="Directory.asp">
<TABLE border="1" cellspacing="2" summary="Search Form">
<TR>
<TD rowspan="3"><FONT size ="+3" COLOR=blue
face=arial><b>JIFFY</B></FONT>
<FONT size="+2" color="#CCCCCC"
face=arial><B>Search</B></FONT></TD>

<TD><center><input type="radio" name="SearchTypeCon_NumAndJON"
Value="Contract" checked> Contract Number
<input type="radio" name="SearchTypeCon_NumAndJON"
Value="JON"> Job Order Number (JON)
</center></TD>
</TR>
<TR>
<TD><center><label for="SearchBox"></label>
<input TYPE="text" NAME="SearchBox" id="SearchBox" SIZE="55"
MAXLENGTH="55" value="<%=request("searchwords")%>">
<input type="Submit" Value="Search" class=button>
</center></TD>
</TR>
<TR>
<TD><center><input type="checkbox" name="SearchTypeTitle" disable
Value="Title"> Title
<input type="checkbox" name="SearchTypeScope" disable
Value="Scope"> Scope
<input type="checkbox" name="SearchTypeObjective" disable
Value="Objective"> Objective
<input type="checkbox" name="SearchTypeApproach" selected disable
Value="Approach"> Approach
</center></TD>
</TABLE>
</form>
my question is how do i make it so when someone checks off a checkbox,
the radio button becomes deselected?

Jimmie


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jul 23 '05 #2
http://www.irt.org/script/1729.htm
This, plus an onclick event on your checkboxes should do the trick.
<ji******@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
I am creating a search engine and here is what i have so far..

<form class="complex-form" name="searchForm" method="post"
action="Directory.asp">
<TABLE border="1" cellspacing="2" summary="Search Form">
<TR>
<TD rowspan="3"><FONT size ="+3" COLOR=blue
face=arial><b>JIFFY</B></FONT>
<FONT size="+2" color="#CCCCCC"
face=arial><B>Search</B></FONT></TD>

<TD><center><input type="radio" name="SearchTypeCon_NumAndJON"
Value="Contract" checked> Contract Number
<input type="radio" name="SearchTypeCon_NumAndJON"
Value="JON"> Job Order Number (JON)
</center></TD>
</TR>
<TR>
<TD><center><label for="SearchBox"></label>
<input TYPE="text" NAME="SearchBox" id="SearchBox" SIZE="55"
MAXLENGTH="55" value="<%=request("searchwords")%>">
<input type="Submit" Value="Search" class=button>
</center></TD>
</TR>
<TR>
<TD><center><input type="checkbox" name="SearchTypeTitle" disable
Value="Title"> Title
<input type="checkbox" name="SearchTypeScope" disable
Value="Scope"> Scope
<input type="checkbox" name="SearchTypeObjective" disable
Value="Objective"> Objective
<input type="checkbox" name="SearchTypeApproach" selected disable
Value="Approach"> Approach
</center></TD>
</TABLE>
</form>
my question is how do i make it so when someone checks off a checkbox,
the radio button becomes deselected?

Jimmie

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Newbie | last post by:
I currently have a set of simple calculations to determine square footage and multuply that by a dollar amount per foot. I use form fields that are filled in by the user, and then the Submit...
9
by: Gary | last post by:
Hello, Is it possible to dynamically update a textbox with words chosen from a list using form checkboxes and javascript? Gary
9
by: sergio | last post by:
Hi all, I have created the following script that will show/hide a menu based on checkboxes. It works fine in Opera but not on IE6! Does anybody knows a workaround this problem? Thanks for your...
1
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...
2
by: Glenn | last post by:
The following script is supposed to have high categories as radio buttons and mid categories as check boxes. Clicking the radio button is supposed to select all checkboxes under it and submit the...
3
by: mountain.dog | last post by:
I have a query that shows a list of options that a user can toggle on or off using a checkbox. query... form... while($row = mysql_fetch_array($result))... <input name="menu_show_attribute"...
4
by: jeet | last post by:
Plz help me.Problem is that On the first page I display all other user with checkbox and give user option to select only two user which he wants to send message. Tell me please how I'll get those...
2
by: forbes | last post by:
Hi, I have a form that contains multiple groups of checkboxes that act like radio buttons (at the clients insistance). There is one text field that is required and 28 checkbox groups. Here an...
2
by: BillE | last post by:
Users of a VS2005 asp.net web forms application can complete questionnaires, and when they are completed the questionnaires can be viewed but not modified. Once completed, the controls in the...
2
by: leifstarkey | last post by:
Hi all... My problem is I'm trying to make a form containing radio buttons and checkboxes. But on the event that one of the radio buttons is selected i want specific checkboxes to then be...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.