473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

JS quickie...

Mel
i have a pulldown with some items on it and a text field. user can either
select from the pulldown, in which case i would like to clear and disabeld
the text field, or enters text into the text field, in which case i like the
pulldown to be re-set to "<Select One Please>" the first item in the
pulldown list.

can someone please help ? I am a neeeeeeeewwwwwbeeeeeeeeeeee

thanks in advance
Jul 23 '05 #1
1 1219
On Thu, 15 Apr 2004 07:57:59 -0400, Mel <me**********@ssa.gov> wrote:
01234567890123456789012345678901234567890123456789 0123456789012345678912
i have a pulldown with some items on it and a text field. user can
either select from the pulldown, in which case i would like to clear and
disabeld the text field, or enters text into the text field, in which
case i like the pulldown to be re-set to "<Select One Please>" the first
item in the pulldown list.


I wrote this a while ago in response to a question on this group. You
should supplement this with server-side checks as a user with JavaScript
disabled will end up submitting both controls.

<URL:http://www.mlwinter.pwp.blueyonder.co.uk/clj/combo.html>

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 23 '05 #2

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

Similar topics

9
by: Glutinous | last post by:
Trying to learn php, and came across =& as in $form =& $HTTP_POST_VARS; I can't find any reference to =&, with no success in searching for a definition (as though it's _so_ obvious it...
2
by: D. Alvarado | last post by:
Hello, I have an array that contains numbers. Each element in the array is guaranteed to be unique. Let's say I have another variable which I know for certain is in the array, but I don't know...
0
by: Gene Ellis | last post by:
Very simple question. If I have the XML file below: <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="newspage.xsl"?> <newspage> <content>Click here for blah...
4
by: CJM | last post by:
Are DOCTYPE statements case sensitive? I cant remember where, but I'm sure I read that case *does* matter... eg. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
10
by: Mel | last post by:
how can i have 2 divs, one 100px and the other to fill the rest of the space side by side ? example is appreciated; thanks
1
by: bartek | last post by:
Hi, I'm sorry for asking such a simple question. I just would like to know what's the standard-defined behaviour when doing a push_back() on a std::deque. TIA, b
7
by: Robin Haswell | last post by:
Hey guys. This should just be a quickie: I can't figure out how to convert r"\x2019" to an int - could someone give me a hand please? Cheers -Rob
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.