Results 1 to 3 of 3

Thread: Java - <HTML:SELECT onChange="onSelection();"> HELP!!!!!!

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Java - <HTML:SELECT onChange="onSelection();"> HELP!!!!!!

    onSelection(this.options[this.selectedIndex].value)

  3. #3
    Join Date
    Apr 2008
    Posts
    19

    Re: Java - <HTML:SELECT onChange="onSelection();"> HELP!!!!!!

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

Similar Threads

  1. Replies: 4
    Last Post: 28-02-2012, 09:46 AM
  2. Replies: 2
    Last Post: 08-12-2011, 10:28 PM
  3. Nokia 5800 prompt "Select Connection" frequently
    By Oriole in forum Portable Devices
    Replies: 2
    Last Post: 24-09-2011, 10:35 PM
  4. "Reboot and Select proper boot device....." NO HARD DRIVE IN SETUP
    By nehal_serpa in forum Windows XP Support
    Replies: 2
    Last Post: 01-07-2010, 08:27 AM
  5. <A HREF="#" onClick="window.open ('sitename.html') ...>
    By Amy Adams in forum Software Development
    Replies: 4
    Last Post: 11-05-2010, 12:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,217,828.74744 seconds with 17 queries