I have the following:
var thiscode = {
init: function(){
jQuery('#submit').bind('click',thiscode.clickListener);
},
clickListener: function(event){
setTimeout('document.myform.submit()',5000);
return false;
}
};
thiscode.init();
setTimeout is working, but when it fires, I get this: "document.myform.submit is not a function".
Any idea why, and/or how to fix it?