Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="/Script.js"></script>
</head>
<body>
<p>This is world jquery!</p>
<button onclick="console.log($(this).myfunc1());">click</button>
</body>
</html>
// Script.js
$(document).ready(function () {
$.fn.extend({
myfunc1: function () {
$("p:contains(This is world jquery!)").text("This is world of jquery!");
}
});
});
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K