Results 1 to 2 of 2

Thread: Help!!

  1. #1

    Thread Starter
    Lively Member gorounreal's Avatar
    Join Date
    Nov 2002
    Location
    Behind You
    Posts
    72

    Question Help!!

    I've never done javascript before so this would probably sound easy for most of you. I want it so that when I choose an option from a combo box it displays certain text in a text box. Example - The combo box contains a list of products when I click on a product the cost of that product is displayed in a text box.

    Thanks in advance
    AMD Athlon 4200 X2, Ati Radeon x1950 Pro 512mb, 2gb Ram, Sound Blaster X-Fi XtremeMusic

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    <select name="productlisting" onChange = "javascript:document.formname.textboxname.value=this.options[this.selectedindex].value';">
    <option value="99.99">Shoes</option>
    <option value="85.95">Snickers</option>
    </select>

    Make sure you have a textbox named "textboxname" in a form called "formname"

    HTH

Posting Permissions

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



Click Here to Expand Forum to Full Width