[jQuery] events in plugins
hi
I'm starting with jquery and I want i a plugin to be bound to an event :
$(document).ready(function(){
$("input[@type='submit']").checkform();
});
my plugin:
$.fn.checkform = function() {
$(this).bind("click", function(){alert("it works");} );
};
I tried to imitate code from other plugins, but I don't get it.
What am I doing wrong ?
olivvv
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/