I have made a jQuery function and want to call it on click event. My code is like below:
<script type="text/javascript">
(function($){
$.fn.my_function = function(options){
return this.each(function(){
alert("Hello");
});
};
})(jQuery);
$(document).ready(function(){
$('#submit_buttom').my_function();
});
</script>
Please help.
Thanks