aspose file tools*
The moose likes Struts and the fly likes creating a text box if the option is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "creating a text box if the option is "other" from the drop down by javascript" Watch "creating a text box if the option is "other" from the drop down by javascript" New topic
Author

creating a text box if the option is "other" from the drop down by javascript

ranjan panda
Greenhorn

Joined: Oct 03, 2005
Posts: 8
Hi,
The case is there is a drop down in my xsl where in if my user selects the "other" option then a text box should be rendered in the resulting HTML so that the user can write a name which does not exist in the drop down.
Is the following the right approach?
function checkOther(){
var sel = document.MainForm.CurrentInsurer.value;
}
I am using javascript for the first time. So who ever want to help me write the complete code for the javascript function and the code for how to call that function from my drop down <select> tag.

Thank you.
Ranjan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating a text box if the option is "other" from the drop down by javascript