Sunday, July 22, 2012

Jquery Conflication

When we use more than one jquery files then sometimes there would be some confliction between common objects. As a result of confliction functionality cannot work properly. To remove this confliction you can use below code

 

<script type="text/javascript">
var $j = jQuery.noConflict();

$j(document).ready(function(){ 
$j("#slider").easySlider();
}); 
</script>

Above code make different object and remove confliction of two objects.

2 comments:

  1. This information you provided in the blog that was really unique I love it!!, Thanks for sharing such a great blog software training institutes | Summer training in embedded

    ReplyDelete

Note: Only a member of this blog may post a comment.