Hi,
I am trying to call user defined function in jquery.
$(document).ready(function() {
$('#btnSun').click(function(){
myFunction();
});
$.fn.myFunction = function() {
alert('hi');
}
});
I tried following as well
function myFunction()
{
alert('hi');
}
but it doesn't seems to work !! Any idea where I am wrong?
Regards, Priti