hi i am new to jquery.. i want to know how to call custom jquery function by onClick attribute of html. This was the basic I was trying.Further I want to make paremetrised function and want to call that function onClick attribute.
my jquery function is:
jQuery.fn.myFadeIn=function() {
return $('#fadeInDiv').fadeIn();
};
and the HTML is:
<input type="radio" name="contentCalls" class="radioButton" id="Calls" onclick="myFadeIn();">
<div id="fadeInDiv">
div to open
</div>
Thanks!