July 30th, 2013, 12:41 AM
Change form action on click
Why doesn;t this work?
July 30th, 2013, 01:57 AM
You've been here for a long time. Should have been long enough to know that "why doesn't this work" is not helpful to us.
Maybe it's just midnight but that seems like it would work... provided there's other stuff going on and other stuff not going on. Post the rest of it.
July 30th, 2013, 11:30 AM
Maybe it does work, you're just not submitting the form in your click handler. You'd need to $("#form").submit(); to do that.
This jsfiddle: http://jsfiddle.net/m3Dq4/ shows an example