Answers for "jquery form create and submit"

3

put form action jquery

$('#button1').click(function(){
   $('#formId').attr('action', 'page1');
});


$('#button2').click(function(){
   $('#formId').attr('action', 'page2');
});
Posted by: Guest on November-03-2020
0

create a form and submit it dynamically jquery

$(function() {
   $('<form action="form2.html"></form>').appendTo('body').submit().remove();
});
Posted by: Guest on April-10-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language