How to use Misc NoConflict() Method in JQuery
In this article I am going to explain about Misc noConflict() method in jquery
jQuery Misc noConflict() Method
jquery Misc noConflict method use for defiend a new custom name foe jquery variable. The noConflict() method remove the control of jquery from $ variable.
Syntax
Example
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
var mm = $.noConflict();
mm(document).ready(function () {
mm("button").click(function () {
mm("p").slideUp();
});
});
</script>
</head>
<body>
<h3>
This is the heading</h3>
<p>
Hello Friends</p>
<p>
How are you</p>
<button>
Click me</button>
</body>
</html>
|
Output
You may also want to read these related articles: here
Ask Your Question
Got a programming related question? You may want to post your question here