javascript - JS plugins conflict -


how can 2 js plugins in same file without conflicting eachothers? problem when add google maps plugin accordions stop working. ideas? please find complete code here: http://jsfiddle.net/bbdsh/ thank you!

/*-----------------------------------------------                  c c o r d o n s     ------------------------------------------------*/       $(document).ready(function() {         var cur_stus;          //close on default         $('.accordion .accordion-content').hide();         $('.accordion .accordion-title').attr('stus', '');          $('.accordion .accordion-title').click(function(){             cur_stus = $(this).attr('stus');             if(cur_stus != "active")             {                 //reset everthing - content , attribute                 $('.accordion .accordion-content').slideup();                 $('.accordion .accordion-title').attr('stus', '').removeclass('active');                  //then open clicked data                 $(this).next().slidedown();                 $(this).attr('stus', 'active').addclass('active');             }             //remove else part if not want close current opened data             else             {                 $(this).next().slideup();                 $(this).attr('stus', '').removeclass('active');             }             return false;         });     }); 


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -