I can submit using Jquery like this:
$('.SomeLink').bind('click', function()
{
$(form).submit();
});
The actual form looks like this:
<form id="foo" method="get" action="http://www.google.com/search">
</form>
Now suppose I have a another link in which I want to be able to use the same form however now I want to change the url of ‘action’. How can I change the action if a different link is clicked?
1 Answer