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/2.1.1/jquery.min.js" type="text/javascript"></script>
<script src="/Script.js " type="text/javascript"></script>
<script src="/Script2.js " type="text/javascript"></script>
</head>
<body>
<div id="myID"></div>
</body>
</html>
// Script.js
(function ($) {
$.fn.GetLocalTime = function () {
var date = new Date();
var mydate = date.toLocaleDateString();
$(this).text(mydate);
return this;
};
})(jQuery);
// Script2.js
$(document).ready(function () {
$("#myID").GetLocalTime();
});
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K