Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Detect text entry in text field box

New Here ,
Mar 29, 2007 Mar 29, 2007

Copy link to clipboard

Copied

Hi,

Can anyone help me here, i am trying to detect if text is being typed in my text field.
Basically what i want to do is :-
If text is typed in my text fieid box then i want to grey out my drop down list box.
Hence how do i take action of text being typed in my text field?

Thanks

Fifo
TOPICS
Server side applications

Views

310
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 29, 2007 Mar 29, 2007

Copy link to clipboard

Copied

Use the 'onKeyDown' event.


"fifo85" <webforumsuser@macromedia.com> wrote in message
news:euft9o$cfo$1@forums.macromedia.com...
> Hi,
>
> Can anyone help me here, i am trying to detect if text is being typed in
> my
> text field.
> Basically what i want to do is :-
> If text is typed in my text fieid box then i want to grey out my drop down
> list box.
> Hence how do i take action of text being typed in my text field?
>
> Thanks
>
> Fifo
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 29, 2007 Mar 29, 2007

Copy link to clipboard

Copied

Thanks for the response TTal
Could you please send me a snippet of code with
the onKeyDownEvent incorporated,
i am new to web design.

Thanks again
fifo

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 29, 2007 Mar 29, 2007

Copy link to clipboard

Copied

LATEST
On Thu, 29 Mar 2007 14:39:53 +0000 (UTC), "fifo85"
<webforumsuser@macromedia.com> wrote:

>Thanks for the response TTal
>Could you please send me a snippet of code with
>the onKeyDownEvent incorporated,


Actually, works better using onKeyUp:

<form action="#" method="get">
<input type="text" onKeyUp="this.form.test.disabled=this.value!=''">
<select name="test">
<option>One</option>
<option>Two</option>
</select>
</form>

Gary

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines