---
title: "jQuery.noConflict and how to use it"  
description: "jQuery.noConflict and how to use it"  
author: "Anonymous User"  
published: 2018-03-28  
updated: 2018-03-29  
canonical: https://www.mindstick.com/forum/34451/jquery-noconflict-and-how-to-use-it  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# jQuery.noConflict and how to use it

I want to jquery noConflict in this [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)

```
<script>
$(document).ready(function(){
    $("button").click(function(){
        $("#div1").remove();
    });
});
</script>
```

## Replies

### Reply by Anonymous User

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..


---

Original Source: https://www.mindstick.com/forum/34451/jquery-noconflict-and-how-to-use-it

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
