how to add jquery live to lightbox v2?

Posted by Mahmoud on Stack Overflow See other posts from Stack Overflow or by Mahmoud
Published on 2010-06-02T21:07:09Z Indexed on 2010/06/02 21:24 UTC
Read the original article Hit count: 155

Filed under:
|
|
|

Hey all

I am trying to create a page that well display a gallery image, when the user clicks on any images it inlarges using lightbox v2 now after that i adding on each image a button that well submit to jcart script which well add to cart, but when the user click on the button it refreshes. so i wanted to use jquery live to submit to jcart without closing the lightbox v2 but i still dont know how to do?

code used inside lightbox title is

<form class="jcart" method="post" action="" name = "add" >
    <input type="hidden" name="id" value="".$row['pro_num']."" />
    <input type="hidden" name="name" value="".$row['pro_name']."" />
    <input type="hidden" name="price" value="".$row['pro_price']."" />

 <input type="hidden"name="qty" size = "1" value="1" />
 <br /> 

 <input type="image" value="Submit" name="addto" src = "images/add.png"  />
</form>

© Stack Overflow or respective owner

Related posts about php

Related posts about AJAX