[jQuery] jquery form plugin submitting 3 times
I am using the jquery form plugin and it seems to submit 3 times. I
have looked at the php code and it should be only submitting it once.
Here is the code
<script type="text/javascript">//<![CDATA[
$('#formTurn').click(function() {
$('#TB_window #yourTurnForm').ajaxForm({
dataType: 'json',
target: '#TB_window #output',
success: processyourTurnForm
});
});
function processyourTurnForm(data) {
$("#formTurn").fadeOut("fast")
$(data.message).appendTo("#TB_window #TB_output")
}
// ]]>
</script>
Here is the page it is running on. Click on the your turn link.
http://www.tjshafer.com/mytimes/
Thanks
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/