If I only include 1 variable pair that uses document.getElementById, it works as expected. When I include an additional pair after this, It creates error. Any Ideas how to include more than one markup pair using this function.
<td><select name="option1" id="option1">
<option value="4">Small -$1.00 </option>
<option value="5">Large +$1.00 </option>
</select></td>
</tr>
</table>
</div>
<div class="buttons">
<table>
<tr>
<td align="right">
<input class="button"type="button" id="Add_to_Cart" value="Add to Cart" onclick="$('#mini_cart').load('index.php?controller=addtocart&action=add&item=15&quantity='+document.getElementById('quantity').value&option1='+document.getElementById('option1').value),document.getElementById('Add_to_Cart').value='Added to Cart';">
<select name="quantity" id="quantity">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>

New Topic/Question
Reply



MultiQuote





|