I need to write this jQuery function in prototype. How can I convert it?
submitHandler: function(form) {
$.post("post.php?"+$("#form1").serialize(), {
}, function(response){
if(response==0)
{
alert("security code is wrong!");
return false;
}
}
);
},
Try: