jQuery.noConflict and how to use it

Total Post:1

Points:7
JQuery 
 439  View(s)
Ratings:
Rate this:

I want to jquery noConflict in this code 

<script>

$(document).ready(function(){
    $("button").click(function(){
        $("#div1").remove();
    });
});
</script>
  1. Post:1

    Points:7
    Re: jQuery.noConflict and how to use it

    You have do following changes in your code

    <script>
    
    $.noConflict();
    jQuery(document).ready(function(){
       jQuery("button").click(function(){
           jQuery("#div1").remove();
        });
    });
    </script>

    hope it might resolve your problem..

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!