js assign url with form code example
Example 1: change form action js
var frm = document.getElementById('search-theme-form') || null;
if(frm) {
frm.action = 'whatever_you_need.ext'
}
Example 2: change form action js
$('form').attr('action', 'myNewActionTarget.html');