Javascript problem. Submit button on form does nothing.
-
I have a form on my site. You enter three fields and click submit, and it is supposed to return with some text. The submit button is no longer working. The custom plugin php file has this bit of code that I believe is supposed to be the calling function for that submit button.
$content .= ‘
<script type=”text/javascript”>
var $j = jQuery.noConflict();
$j(window).load(function(){
$j(“#pubverify-form”).submit(function() {
var str = $j(this).serialize();
$j.ajax({
type: “POST”,
url: “‘ . $cs_base_dir . ‘verify.php”,
data: str,
success: function(msg){
$j(“#note”).ajaxComplete(function(event, request, settings)
{
$j(this).html(msg);
});
}
});
return false;
});
});
</script>’;Does it need to be updated some how to coincide with JQuery 1.9? This was built during v.1.6. I’ve tried editing it a few times, but only made it worse.
Please help!
- The topic ‘Javascript problem. Submit button on form does nothing.’ is closed to new replies.