Results 1 to 3 of 3

Thread: Help with code

  1. #1
    Join Date
    Apr 2014
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Help with code

    I want to add another input box into my code when something is selected

    On the jsfiddle below if you select "New Claim" extra boxes appear.

    I need to add a further box if "Paper" is selected from the process drop down menu

    Can anyone help me please?

    Any help is massively appreciated

    Thanks

    http://jsfiddle.net/3KNnL/

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,933
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    Add the highlighted (two places):

    Code:
             <td class="title">Process:</td>
            <td class="field"><select name="type" onchange="display(this,'Paper','dummy');">
                <option value="Please select:">Please select:</option>
                <option value="Real">Real</option>
                <option value="Paper">Paper</option>
                    </select></td>
    		 </tr>	
     <tbody id="Paper" style="display: none;">
          <tr>
            <td class="title"><div align="left">New Tariff Details:</div></td>
            <td class="field">
              <div align="left">
                <input type="text" name="color" size="40" maxlength="50" />
              </div></td>
          </tr>
        </tbody>
        <tbody id="dummy" style="display: none;">
        </tbody>
      </table>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2014
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    That easy!

    Thank you very much

Similar Threads

  1. Replies: 3
    Last Post: 05-12-2011, 03:43 AM
  2. Secret code / hidden message / obfuscated code - ???
    By newbie01.others in forum JavaScript
    Replies: 2
    Last Post: 01-14-2011, 10:29 AM
  3. Replies: 15
    Last Post: 06-11-2009, 12:27 PM
  4. Replies: 2
    Last Post: 10-27-2008, 05:16 AM
  5. Help - Code discrepency - Full Screen code
    By kurson in forum Dynamic Drive scripts help
    Replies: 17
    Last Post: 05-23-2006, 05:21 AM

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
  •