PDA

View Full Version : JavaScript Web code


orso
02-05-2008, 03:28 PM
I am trying to create this form effect but have a none existent knowledge of javascript can some walk me through this form trick. Thanks.

http://www.maxbats.com/baseballbats.php

<div align="center">
<form id='customBatForm' name='customBatForm' action="javascript:get(document.getElementById('customBatF orm'));">
<input type='hidden' name='productID' id='productID' value='11'>
<input type='hidden' name='customBatID' id='customBatID' value='255255'>
<table>
<tr>
<td colspan='2'>Please fill out all options to see complete preview</td>
</tr>
<tr>
<td align='right'>Quantity:</td><td><input type='text' name='qty' id='qty' size='2' value='1' onkeyup="javascript:get(this.submit);"></td>

</tr>
<tr>
<td align='right'>Length:</td>
<td><select name='length' id='length'
onchange="javascript:get(this.submit);">


<option value=''>Please Select</option><option value='32'>32</option><option value='32.5'>32.5</option><option value='33'>33</option><option value='33.5'>33.5</option><option value='34'>34</option><option value='34.5'>34.5</option><option value='35'>35</option><option value='35.5'>35.5</option>
</select>
</td>
</tr>
<tr>
<td align='right'>Handle:</td>
<td><select name='handle' id='handle' onchange="javascript:get(this.submit);">
<option value=''>Please Select</option><option value='Black'>Black</option><option value='Blue'>Blue</option><option value='Brown'>Brown</option><option value='Carolina Blue'>Carolina Blue</option><option value='Charcoal'>Charcoal</option><option value='Cherry'>Cherry</option><option value='Clear Finish'>Clear Finish</option><option value='Cordovan'>Cordovan</option><option value='Green'>Green</option><option value='Maroon'>Maroon</option><option value='Mustard'>Mustard</option><option value='Navy'>Navy</option><option value='Orange'>Orange</option><option value='Pink'>Pink</option><option value='Purple'>Purple</option><option value='Rust'>Rust</option><option value='Unfinished'>Unfinished</option><option value='White Hot'>White Hot</option>
</select>