javascript - How to trigger a close event in lightbox_me -
I tried all things but none of them is working.
Here is the code to call lightbox_me
:
$ ('# buynow'). Click (function (e) {$ ('# pop'). Lightbox_me ({centered: true,}); E.preventDefault ();});
and I am calling close
function using the href
link:
function Close () {$ ('# Pop'). Trigger ('off'); }
I am sending an AJAX request to get a car product
$ ("# buynow"). Click (function () {// $ .ajax ({type: "POST", url: "displaycart.php", data: '1', cache: incorrect, success: work to submit ajax code form) ) {$ ('# Pop'). Html result);}}); Return false;});
I get all the values from another file that contains the HTML code, this code is
while ($ fetch_pro = mysql_fetch_array ($ pro)) {$ Product = mysql_query ("Select * from product where id = '". $ Fetch_pro [' pro_id ']. "'"); While ($ fetch_product = mysql_fetch_array ($ product)) {echo '& lt; Tr & gt; & Lt; Td class = "padd_botton" & gt; '; Echo '& lt; Img src = "images / product_images / '. $ Fetch_product [' image '].' 'Height =" 60px "width =" 60px "& gt;'; echo & lt; / td> & lt; td class = "Padd_botton" & gt; '; echo & lt; / td & gt; & lt; td class = "padd_botton">; echo $ fetch_product [' product_name '].' & Lt; br & gt; & lt ; A href = "javascript: remove ('. $ Fetch_pro [' id '].);" & Gt; remove & lt; td class = "Padd_botton" & gt; '; echo & lt; / td & gt; & lt; td class = "padd_botton">;; resonance' rupees'. $ Fetch_product ['value']; echo & lt; / td & Gt; & lt; td class = "padd_botton">;; echo & lt; / td> & lt; td class = "padd_botton" & gt; '$ $ total = $ fetch_pro [' qua '] * $ Fetch_product ['value']; echo '& lt; span style = "color: # 6e8a02" & gt; Rs. $ Total '. & Lt; / span & gt;'; echo & lt; / tr & gt; '; $ end_total = $ total + $ end_total;}}
Comments
Post a Comment