<script type="text/javascript" src="jscripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert("funciton");
$(function(){
$.fn.gotof(){
alert("I am calling form jquery");
}
});
});
</script>
<input type="button" onclick="dofunc();">
<script type="text/javascript">
function dofunc(){
gotof();
}
</script>
how do i call gotof() that is present in jquery
and below is the code written over jsfiddle
$.fnanyway if you want to callgotof()regularly? I don't see the necessity for jQuery here.gotofwill be available as$(selector).gotof(). Maybe have a look at docs.jquery.com/Plugins/Authoring and jQuery/JavaScript in general again. Edit: Well, if you fix the syntax errors ;)$.fn.gotof(){is a syntax error.