Joining 2 actions..

Hello all, just wondering if someone could help me out here…
I’m working on a form and looking to get two things happen at the same time when submitted.
the below code works great on there own… but I’m looking to add them.

[1] submits the data to a shopping cart.
[2] opens a drop down modal box telling the user they added it to the cart

<div class="add">Quantity
<input type="text" name="my-item-qty" value="1" size="5" class="input"/>

<!-- [1] -->
<input type='submit' name='my-add-button' value="ADD" class='my-add-button demo'/>

<!-- [2] -->
<input type="submit" class="simplemodal-close" style="background-image:url(../images/cart-add.png);height:22px; width:71px;background-color:transparent;border:0px;" name="my-add-button" value="&nbsp;" />

the last time i made a cart i used an array and simply counted the items and displayed the number next to the cart button

Sponsor our Newsletter | Privacy Policy | Terms of Service