Fundamentals of programming Javascript and jQuery Practical Gold :: 2018-02-10 17:02:32

[rss url=http://speedwayfightclub.com/feed]

$( document ).ready(function() {
//////////////////////////////////////////////
/** FUNDAMENTAL OF JAVASCRIPT/JQUERY//////////
//////////////////////////////////////////////
pass a reference to a function as a callback,/
& not the result of function execution! **////
var strItem= $('#input1').val();
function logItem(){
console.log(strItem);
}
$("#objBut").on( "click", logItem );
});
« »