Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-10-2008
Member
 
Join Date: Apr 2008
Posts: 19
Java - <HTML:SELECT onChange="onSelection();"> HELP!!!!!!

Hi

I have a selection box on a pop-up window and I would like to get the value every time a new value is selected in the selection box. How do I pass that value in to the onSelection() that I'm calling from the onChange event handler??? See code below.

Code:
<html:select name="dealDocumentUploadForm" property="documentType"
size="1" styleclass="dropdown" styleId="documentType"
onChange="onSelection();">
<bean:define id="documentTypeList"
name="<%=UIConstants.DEAL_BEAN_KEY%>" property="documentTypeList"
type="java.util.Collection"/>
<htmlptions collection="documentTypeList" property="value"
labelProperty="label" />
</html:select>
Cheers.
Reply With Quote
  #2  
Old 25-10-2008
Member
 
Join Date: May 2008
Posts: 2,293
Re: Java - <HTML:SELECT onChange="onSelection();"> HELP!!!!!!

onSelection(this.options[this.selectedIndex].value)
Reply With Quote
  #3  
Old 25-10-2008
Member
 
Join Date: Apr 2008
Posts: 19
Re: Java - <HTML:SELECT onChange="onSelection();"> HELP!!!!!!

Ok, but how to use struts action when using onchange.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Java - <HTML:SELECT onChange="onSelection();"> HELP!!!!!!"
Thread Thread Starter Forum Replies Last Post
Lightning with yahoo is giving an error message saying "Please select a calendar that supports tasks" ShiamakD' Technology & Internet 4 28-02-2012 09:46 AM
How to select "Use Desktop View" from Internet Explorer 10 Metro Style in Windows 8 Sandalwood Technology & Internet 2 08-12-2011 10:28 PM
Nokia 5800 prompt "Select Connection" frequently Oriole Portable Devices 2 24-09-2011 10:35 PM
"Reboot and Select proper boot device....." NO HARD DRIVE IN SETUP nehal_serpa Windows XP Support 2 01-07-2010 08:27 AM
<A HREF="#" onClick="window.open ('sitename.html') ...> Amy Adams Software Development 4 11-05-2010 12:45 PM


All times are GMT +5.5. The time now is 11:34 PM.