SyntaxFix
Write A Post
Hire A Developer
Questions
$(document).ready(function() { $('#btnSun').click(function(){ myFunction(); }); $.fn.myFunction = function() { alert('hi'); }; });
Put ' ; ' after function definition...