jQuery Pop up for Repeating items


/ Published in: jQuery
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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. });

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.