File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Dropdown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dropdown" Watch "Dropdown" New topic


Aravind JAI

Joined: Feb 06, 2006
Posts: 18
I have one text box with lookup button and 1 drop down box my screen..When selecting a value using lookup button that selected value or text should be placed in that text box..According to that text the drop down values should get populated...We r doign this using Ajax..But how to identify whether the user has entered any value in that text box or not..Reply me Thanks in Advance
[ February 14, 2006: Message edited by: Bear Bibeault ]
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
onchange event of the text box will be triggered if the value changes. You can call a javascript function onchange of the textbox and in the function check if the value of the textbox is blank or does it have some value and based on that do further processing.

Life called,so here I am.<br />Cheers<br />Niki.:-)
Aravind JAI

Joined: Feb 06, 2006
Posts: 18
It is sorta covered in the JavaRanch Style Guide.
subject: Dropdown
It's not a secret anymore!