Click here to Skip to main content
16,004,647 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So i set up a table that i would like to use. I'm not sure where to go from here.

XML
<table width="951" border="0">
  <tr>
    <th width="145" scope="col">Part Description</th>
    <th width="155" scope="col">Quantity</th>
    <th width="155" scope="col">New/Old</th>
    <th width="153" scope="col">Quoted Price</th>
    <th width="160" scope="col">Aker Price</th>
    <th width="143" scope="col">Part #</th>
  </tr>
  <tr>
    <td><form id="form1" name="form1" method="post" action="">
      <label>
        <div align="center">
          <select name="Part Description" id="Part Description">
            <option>ACL 5500</option>
            <option>ACL 5100</option>
            <option>Profire 1100</option>
            <option>FGI 351</option>
          </select>
        </div>
      </label>
    </form></td>
    <td><form id="form2" name="form2" method="post" action="">
      <label>
        <div align="center">
          <select name="Quantity" id="Quantity">
            <option>0</option>
            <option>1</option>
            <option>2</option>
            <option>3</option>
            <option>4</option>
            <option>5</option>
          </select>
        </div>
      </label>
    </form></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

</table>


when i select from the product menu i would like a stored list to popup in one of the different columns.

for example, if i selected ACL 5500, i would like for a price to automatically pop up in the quoted price column and multiply that number according to the quantity i select.

is there something i should be looking for, it's been years since ive done anything with javascript and i am completly lost right now.

i am using dreamweaver cs4 to do this as well.
Posted
Updated 1-Sep-10 13:00pm
v2
Comments
AspDotNetDev 1-Sep-10 18:58pm    
In the future, you should choose a more appropriate title than "i need some help please". That's obvious. Everybody who posts a question needs help. Be specific to the problem you are having.

Most elements (tables, table cells, drop downs) in JavaScript have events, such as click events or selection changed events. Google for how to use those JavaScript events and go from there.
 
Share this answer
 
Read this article form our own .... Using JavaScript to handle drop-down list selections[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900