Posted By

i-am-andy on 09/07/11


Tagged

div window jquery to a find up pop for items traversing Repeating


Versions (?)

jQuery Pop up for Repeating items


 / Published in: jQuery
 

URL: http://www.newvisions.ch/courses/

Useful jQuery for mutliple items on a page that are using the same jquery function and classes to perform an action. By traversing the dom like this the function will only be applied to the item you are clicking on and not all elements on the page that have the class specified in the jQuery function.

  1. $('a.orange_button_end').click(function() {
  2. var p = $(this).parent().parent().parent().find('div.promo_box_pop_up').slideToggle('fast', function() {
  3. // Animation complete.
  4. });
  5. });

Report this snippet  

You need to login to post a comment.