/    Sign up×
Community /Pin to ProfileBookmark

JQuery conflict :(

I’ve tried understanding the noconflict issue thru various sites, yet I can’t sort out this issue… ?

I’m using the first Jquery code to create some custom dropdown form fields, which uses:
$(document).ready(function(){…

then for the datepicker, I had to use jquery 1.6.2, so I used this:
$.noConflict();
jQuery(document).ready(function($)

the page works fine.

Now I had to add a photo gallery in the same page, so I’m using lightbox.js and it refuses to work!
The code uses these 3 :
<script src=”js/prototype.js” type=”text/javascript”></script>
<script src=”js/scriptaculous.js?load=effects,builder” type=”text/javascript”></script>
<script src=”js/lightbox.js” type=”text/javascript”></script>

and then simply in the HTML:
<a href=”images/b.jpg” rel=”lightbox”><img src=”images/t.jpg” /></a>

I’ve taken the lightbox code from:
lokeshdhakar[dot]com/projects/lightbox2/

How can I have all 3 aspects of the page to work?
Please help me!!! Thanks in advance ?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Divyakedia spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...