Is it possible to do an if statement so that this script only runs if the first div is != #MyCustomID1 div.fixedClass
?
jQuery(document).ready(function($) {
$("#MyCustomID2 div.fixedClass").click(function(){
$(this).toggleClass("active");
$(this).next("MyCustomClass2 div.fixedClass").stop('true','true').slideToggle(600);
});
});
I'm wanting to run the same script doing the same thing in two separate plugins, but I don't want them to conflict. Or maybe it's possible to name the functions and have one check for the other before it proceeds?