Try this:
$('#button1').click(function(){
$('#formId').attr('action', 'page1');
});
$('#button2').click(function(){
$('#formId').attr('action', 'page2');
});
More Related Contents:
- Use jQuery to hide a DIV when the user clicks outside of it
- jQuery .data() does not work, but .attr() does
- How can I bind all events on a DOM element?
- jquery save json data object in cookie
- What’s the difference between jQuery’s replaceWith() and html()?
- How can I make a jQuery countdown
- jQuery: keyPress Backspace won’t fire?
- jquery, add/remove class when window width changes
- What makes a jQuery object show up as an array in Chrome’s Developer Tools?
- How to call .ajaxStart() on specific ajax calls
- jquery ajax problem in chrome
- Yellow fade effect with JQuery
- JQuery: Build HTML in ‘memory’ rather than DOM
- How to populate a dropdownlist with json data in jQuery?
- jquery fullcalendar event filtering
- jQuery check if element has a specific style property defined inline
- Accessing cross-domain style sheet with .cssRules
- How do I get a jQuery selector’s expression as text?
- jquery get height of iframe content when loaded
- How do you create a toggle button?
- How to remove only one style property with jQuery?
- change focus into particular div
- jQuery mobile- For every live tap event should there be an equivalent click event?
- e.preventdefault(); not working
- Any way to make jQuery.inArray() case insensitive?
- jQuery detect programatic change to field
- Selectable optgroup using select2
- jquery click doesn’t work on hyperlink
- Disable Back Button in Browser using jquery?
- change the href of a css link via jquery