Web
Analytics
Jquery No Conflict and ready event | Angular | ASP.NET Tutorials

For Consultation : +91 9887575540

Stay Connected :

let me tell you that what is the purpose of document ready function in jQuery and purpose of no conflict function in jQuery

<!DOCTYPE html>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title></title>
<script src=”jquery-2.1.4.js”></script>
<script>

var yogesh = jQuery.noConflict();
yogesh(document).ready(function () {
yogesh(“#btn”).click(function () {
alert(“Hello Button is clicked”);
})
})

</script>
</head>Download Source Code
<body>

<input type=”button” id=”btn” value=”Click Me” />

</body>
</html>