Results 1 to 2 of 2
  1. #1
    vallaru is offline Member
    Join Date
    Apr 2010
    Rep Power

    Default dropdown with other option


    I have dropdown with some value and other. When user clicks on other there is text box where user can enter a value which should be save in database

    n="left" valign="middle"><s:select name="eventType" id="eventType" cssClass="formDropDown" list="{'Environmental','Community','Health Care','Youth','Other'}" headerKey=""
    headerValue="Select" label="Select a activity" /></td>
    <td align="left" valign="middle">&nbsp;</td>
    <td align="left" valign="middle"class="formLabelElement">If Other:
    <s:textfield name="eventType" cssClass="formTextfield" id="eventType" size="20" /></td>

    But when i submitt both other and value entered in textbox is getting saved.

    Is this to be handled in javascript??


  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Rep Power


    It exist special tools for debug javascripts, for example firebug, It is plugin by FireFox.
    Skype: petrarsentev

Similar Threads

  1. dropdown onchange
    By srivempala in forum New To Java
    Replies: 0
    Last Post: 01-23-2011, 12:54 PM
  2. JAX-WS\METRO - apt with option option key="r"
    By Talkinjive in forum Web Frameworks
    Replies: 0
    Last Post: 01-31-2010, 05:15 PM
  3. Jtextbox with dropdown list
    By vijay_s in forum AWT / Swing
    Replies: 3
    Last Post: 05-08-2008, 06:26 AM
  4. getting values from database in dropdown
    By aa74 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-21-2008, 10:00 PM
  5. Help with dropdown list
    By barney in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 07:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts