Skip to content Skip to sidebar Skip to footer

Trying To Submit A Form With Jquery

I am having trouble submitting a form. I have filled it out. The form starts like:

Solution 1:

Try this this:

document.forms[formName].submit();

Solution 2:

Do you want to post those values back to the server? It is confusing what you want to do.

<form action="" name="f" enctype="multipart/form-data" method="POST">
<inputtype="hidden"name="aa"value="b" /><inputtype="hidden"name="cbc"value="c" />
</form>

$(document).ready(function(){
    $('form[name="f"]').submit();
});

Post a Comment for "Trying To Submit A Form With Jquery"