What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 51628 |  Welcome, Guest!   Register  Login
 Home > Forums > jQuery > two Jquery plugin not working on same page ...
Donraza007@Gmail.Com

two Jquery plugin not working on same page

Replies: 3 | Posted by: Donraza007@Gmail.Com on 6/29/2012 | Category: jQuery Forums | Views: 626 | Status: [Member] | Points: 10  


I have to use 2 jquery plug in in same page but only one plug in is working at a time
Here is my script code
<script type="text/javascript" >
$(document).ready( function()
{
$('pre.loadme').lazyLoad();
$('pre.morestuff').lazyLoad();
} );
</script>

<script>
$(document).ready(function(){

// hide #back-top first
$("#back-top").hide();

// fade in #back-top
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$('#back-top').fadeIn();
} else {
$('#back-top').fadeOut();
}
});

// scroll body to 0px on click
$('#back-top a').click(function () {
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
});

});
</script>


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Perfect.Chourasia@Gmail.Com
Perfect.Chourasia@Gmail.Com  
Posted on: 7/4/2012 4:34:14 AM
Level: Starter | Status: [Member] | Points: 25

http://api.jquery.com/jQuery.noConflict/

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://sandeep-chourasia.blogspot.com/

Donraza007@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Saficreator@Gmail.Com
Saficreator@Gmail.Com  
Posted on: 7/4/2012 8:01:39 AM
Level: Starter | Status: [Member] | Points: 50

Resolved

Instead of use $ symbol use Jquery as like below

jquery(document).ready( function()
instead of
$(document).ready( function()

Regards,
Mohamed Shafee M

Donraza007@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Patel28rajendra
Patel28rajendra  
Posted on: 7/5/2012 1:10:47 AM
Level: Starter | Status: [Member] | Points: 25

Hi

Replace $ with Jquery as Mohamed Shafee said

I had face this problem once and replacing with Jquery solved my Problem


Thanks
RaJeNDRA PaTeL



R D Patel

Donraza007@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 12:44:55 PM