Return to Snippet

Revision: 50887
at September 7, 2011 19:43 by i-am-andy


Initial Code
$('a.orange_button_end').click(function() {
		var p = $(this).parent().parent().parent().find('div.promo_box_pop_up').slideToggle('fast', function() {
			// Animation complete.
		});
	});

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

Initial Description
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.

Initial Title
jQuery Pop up for Repeating items

Initial Tags
window, jquery, find

Initial Language
jQuery