anchor - jQuery selector with specific attribute -
i've got code:
$('a').click( function() { $("#change_flash").css("display", "block"); $("#my_flash").css("display", "none"); }); but 1 works anchor elements. influence script anchors elements contains rel="lightbox" attribute.
how can achieve it?
$('a[rel="lightbox"]').click( function() { $("#change_flash").css("display", "block"); $("#my_flash").css("display", "none"); });
Comments
Post a Comment