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

    Default dropdown with other option

    hi,

    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:
    &nbsp;
    <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??

    thanks
    smitha

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

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

Similar Threads

  1. dropdown onchange
    By srivempala in forum New To Java
    Replies: 0
    Last Post: 01-23-2011, 11:54 AM
  2. JAX-WS\METRO - apt with option option key="r"
    By Talkinjive in forum Web Frameworks
    Replies: 0
    Last Post: 01-31-2010, 04: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
  •