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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -