473,847 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
+ 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="searchFor m" method="post"
action="Directo ry.asp">
<TABLE border="1" cellspacing="2" summary="Search Form">
<TR>
<TD rowspan="3"><FO NT size ="+3" COLOR=blue
face=arial><b>J IFFY</B></FONT>
<FONT size="+2" color="#CCCCCC"
face=arial><B>S earch</B></FONT></TD>

<TD><center><in put type="radio" name="SearchTyp eCon_NumAndJON"
Value="Contract " checked> Contract Number
<input type="radio" name="SearchTyp eCon_NumAndJON"
Value="JON"> Job Order Number (JON)
</center></TD>
</TR>
<TR>
<TD><center><la bel for="SearchBox" ></label>
<input TYPE="text" NAME="SearchBox " id="SearchBox" SIZE="55"
MAXLENGTH="55" value="<%=reque st("searchwords ")%>">
<input type="Submit" Value="Search" class=button>
</center></TD>
</TR>
<TR>
<TD><center><in put type="checkbox" name="SearchTyp eTitle" disable
Value="Title"> Title
<input type="checkbox" name="SearchTyp eScope" disable
Value="Scope"> Scope
<input type="checkbox" name="SearchTyp eObjective" disable
Value="Objectiv e"> Objective
<input type="checkbox" name="SearchTyp eApproach" 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 2014

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.FORMNA ME.RADIONAME[2].checked=false; will uncheck
the 3rd radio button in that collection.

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

<form class="complex-form" name="searchFor m" method="post"
action="Directo ry.asp">
<TABLE border="1" cellspacing="2" summary="Search Form">
<TR>
<TD rowspan="3"><FO NT size ="+3" COLOR=blue
face=arial><b>J IFFY</B></FONT>
<FONT size="+2" color="#CCCCCC"
face=arial><B>S earch</B></FONT></TD>

<TD><center><in put type="radio" name="SearchTyp eCon_NumAndJON"
Value="Contract " checked> Contract Number
<input type="radio" name="SearchTyp eCon_NumAndJON"
Value="JON"> Job Order Number (JON)
</center></TD>
</TR>
<TR>
<TD><center><la bel for="SearchBox" ></label>
<input TYPE="text" NAME="SearchBox " id="SearchBox" SIZE="55"
MAXLENGTH="55" value="<%=reque st("searchwords ")%>">
<input type="Submit" Value="Search" class=button>
</center></TD>
</TR>
<TR>
<TD><center><in put type="checkbox" name="SearchTyp eTitle" disable
Value="Title"> Title
<input type="checkbox" name="SearchTyp eScope" disable
Value="Scope"> Scope
<input type="checkbox" name="SearchTyp eObjective" disable
Value="Objectiv e"> Objective
<input type="checkbox" name="SearchTyp eApproach" 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******@hotma il.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.com...
I am creating a search engine and here is what i have so far..

<form class="complex-form" name="searchFor m" method="post"
action="Directo ry.asp">
<TABLE border="1" cellspacing="2" summary="Search Form">
<TR>
<TD rowspan="3"><FO NT size ="+3" COLOR=blue
face=arial><b>J IFFY</B></FONT>
<FONT size="+2" color="#CCCCCC"
face=arial><B>S earch</B></FONT></TD>

<TD><center><in put type="radio" name="SearchTyp eCon_NumAndJON"
Value="Contract " checked> Contract Number
<input type="radio" name="SearchTyp eCon_NumAndJON"
Value="JON"> Job Order Number (JON)
</center></TD>
</TR>
<TR>
<TD><center><la bel for="SearchBox" ></label>
<input TYPE="text" NAME="SearchBox " id="SearchBox" SIZE="55"
MAXLENGTH="55" value="<%=reque st("searchwords ")%>">
<input type="Submit" Value="Search" class=button>
</center></TD>
</TR>
<TR>
<TD><center><in put type="checkbox" name="SearchTyp eTitle" disable
Value="Title"> Title
<input type="checkbox" name="SearchTyp eScope" disable
Value="Scope"> Scope
<input type="checkbox" name="SearchTyp eObjective" disable
Value="Objectiv e"> Objective
<input type="checkbox" name="SearchTyp eApproach" 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
8178
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 button opens the asp page that returns the result of the calculation. What I would like to do is add certain numbers to the total based on radio buttons or checkboxes that the user activates on the form page. For instance, they enter the numbers into...
9
3000
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
2780
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 response. Sergio ------------------------------------------------ <script language="JavaScript" type="text/javascript">
1
6166
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!
2
2220
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 form. RADIO (ID = 0001-1 VALUE="") CHECK (ID=0001-0011) CHECK (ID=0001-0012) RADIO (ID = 0001-2 VALUE="") CHECK (ID=0001-0021) CHECK (ID=0001-0022)
3
5162
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" type="checkbox" class="checkbox"'); if ($row == 1) { echo (' value="'.$row.'" checked />
4
3318
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 checkboxes value and name on the next page and send message to only those two selected user. Thanx in advance
2
6806
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 example of a checkbox group: <td><input type="checkbox" name="trusted" value="1" id="ck_ttt1" onclick="... <td><input type="checkbox" name="trusted" value="2" id="ck_ttt2"
2
1834
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 questionnaire are disabled (enabled = false). Many users have complained that the grayed-out appearance makes it difficult to see radio buttons and checkboxes, and particularly hard to see which controls are checked/selected. The users use IE6
2
1970
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 automatically selected. E.g. "On the event that gender male (radiobutton) is selected - for the form to then automatically select the following film genre (checkboxes) Action, Sci-Fi and Crime and leave unselected the remaining checkboxes." Gender: ...
0
10654
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
10718
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
10347
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
9493
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...
1
7888
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7061
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();...
0
5729
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4130
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.