webtuto Posted June 5, 2009 Share Posted June 5, 2009 hi i made a page where i included j query , and everything was working fine , all fine but after that i included a PLUGIN (lightbox) , so the plugin worked fine , and not the jquery code i made my self :s firebug gives me this error --> $("#body_edit") is null [break on this error] $('#body_edit').toggle(); Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/ Share on other sites More sharing options...
RichardRotterdam Posted June 5, 2009 Share Posted June 5, 2009 You are probably using the prototype lightbox version. If so prototype and jQuery are conflicting with one another Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850183 Share on other sites More sharing options...
webtuto Posted June 5, 2009 Author Share Posted June 5, 2009 yes its true im using prototype version so whats the solution ? Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850185 Share on other sites More sharing options...
RichardRotterdam Posted June 5, 2009 Share Posted June 5, 2009 I recommend you get a jQuery based lightbox. You can also use jquery noConflict. But it can be a bit trickier to some. Just do a search for "jquery lightbox" and use that one instead. Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850191 Share on other sites More sharing options...
webtuto Posted June 5, 2009 Author Share Posted June 5, 2009 thanks , i used jquery nonconflict , thanks its solved Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850193 Share on other sites More sharing options...
Ken2k7 Posted June 6, 2009 Share Posted June 6, 2009 You can always change the $ to jQuery. Link to comment https://forums.phpfreaks.com/topic/161113-a-problem-jquery/#findComment-850394 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.