Speedway Fight Club

Fundamentals of programming Javascript and jQuery Practical Gold

[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 ); });