how to create an function using jquery live?

Posted by Mahmoud on Stack Overflow See other posts from Stack Overflow or by Mahmoud
Published on 2010-06-03T21:00:42Z Indexed on 2010/06/03 21:04 UTC
Read the original article Hit count: 401

Filed under:
|
|

Hey all

i am trying to create a function that well keep the user in lightbox images while he adds to cart, for a demo you can visit

secure.sabayafrah.com username: mahmud password: mahmud

when you click at any image it well enlarge using lightbox v2, so when the user clicks at the image add, it well refresh the page, when i asked about it at jcart support form they informed me to use jquery live, but i dont know how to do it but as far as i tried this code which i used but still nothing is happening

        jQuery(function($) {

$('#button') 
    .livequery(eventType, function(event) { 
        alert('clicked'); // to check if it works or not
        return false; 
    }); 
 });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX