Answers for "change form action with jquery"

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

change form action js

var frm = document.getElementById('search-theme-form') || null;
if(frm) {
   frm.action = 'whatever_you_need.ext' 
}
Posted by: Guest on November-09-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language