Disabling a text box/list box after a selectio has been made.

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Fawke101 (guy_at_ANTIbradflack.SPAMcom)
Date: 03/22/04


Date: Mon, 22 Mar 2004 09:57:51 -0000

Hi there,

I have a .asp page that has a text box and a list box.
The user enters criteria into ONE of the boxes.

What i would like is that when the user makes a selection from the list box
(sql populated) the text box is disabled, and when a user enters a character
into the text box, the list box is disabled (not including spaces)

This is a bit cosmetic, but what is the best way of doing this? Some client
side code presumably, Javascript?
I am not too hot with JS so some examples or sample code would be great

Thanks

--
Thanks in advance
Fawke
Please remove ANTI and SPAM
from my email address before emailing me.
www.bradflack.com


Relevant Pages

  • Disabling dynamic list boxes/text boxes
    ... I have a .asp page that has a text box and a list box. ... The user enters criteria into ONE of the boxes. ... I am not too hot with JS so some examples or sample code would be great ...
    (microsoft.public.scripting.jscript)
  • Re: How to submit form data to both email and database at same tim
    ... know how to "intercept" the "on submit" action of the DRW webbot. ... >> emailing from an ASP page. ... >> Jim Buyens replied to my question and with this link ... >> use some of the sample code to send a email. ...
    (microsoft.public.frontpage.programming)
  • Re: Excel follow-up
    ... > I read through Curt's sample code for using ASP to create a spreadsheet ... and generate a spreadsheet. ... into a new ASP page then appending your table below it. ... I created an empty Excel file called "Sortable.xls". ...
    (microsoft.public.inetserver.asp.general)
  • Re: How to submit form data to both email and database at same tim
    ... back to you, if you don't mind, via this thread. ... > emailing from an ASP page. ... > send emails (it was real easy to do). ... > use some of the sample code to send a email. ...
    (microsoft.public.frontpage.programming)
  • Re: How to submit form data to both email and database at same tim
    ... interlacken code had to be modified since my ISP doesn't support CDO's, ... >> Dave, ... >> emailing from an ASP page. ... >> use some of the sample code to send a email. ...
    (microsoft.public.frontpage.programming)