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>
<button>call the function</button>
<p></p>
<script>
$(document).ready(function () {
$("button").click(function(){
console.log($(this).myfunction());
});
});
</script>
</body>
</html>
// Script.js
$(document).ready(function () {
$.fn.extend({
myfunction: function () {
var text = "This is world of jquery!";
var res = text.toUpperCase();
$("p").text(res);
}
});
});
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K