Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple checkbox question

Status
Not open for further replies.

cactus1000

Programmer
Aug 31, 2001
149
US
This is an easy one (but I don't know how to do it)

I have a search form -- there's a checkbox for "search all" and a textbox for "search by name".

I need the check in the "search all" checkbox to become un-checked when someone types something into the textbox.

I know my asp code should check the value of the textbox and reset the checkbox accordingly before executing any other code, but I just don't know the syntax.
 
You want this to happen on the client-side, where the user is. That's not ASP, that's Javascript. Forum216 will have the answer you need.
 
For the textbox add: onchange="javascript:document.form1.searchall.checked = false;"

That syntax might not be exact, but its close.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top