Jquery help - Help with using JQuery and Lightbox2?

24th of April 2014 0

Help with using JQuery and Lightbox2?

I am using scrollTo and localscroll along with Lightbox 2.0 and they are not working together…its either one or the other depending on the order i put them. I looked into the JQuery.noConflict() but not sure how it works.

this is my codes using multiple jquery libraries

$ (document).ready(function () {
$ .localScroll.defaults.axis = ‘x’;
$ .localScroll();
});

Best answer:

Answer by Stas S
You are using more than one js framework so for jQuery you need to use jQuery instaed of $ , or you can use noConflict method to assign jQuery to variable like in example below




What do you think? Answer below!

Filed under § jquery — Tagged with , , , ,

Share it!

Was it good for you to?

Sponsors

Support for the site!

No sponsors at the moment.



Your opinion matters. Add it below.


Tip: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent comments

Categories



Copyright jqueryui.info since 2010. All rights reserved. Design and the Absolute Theme by Tommie Hansen.