Is it possible to attach value to form's action url through jQuery?
<p>basically whenever the user clicks an anchor tag or submits a form, I need to ask the user for a "reason" via javascript prompt, and whatever text he inputs needs to be attached to the existing url parameters before sending.</p>

<p>so when anchor tag with <code>href='index.php?id=32'</code> is clicked, I want to visit the link <code>'index.php?id=32&amp;reason="Some_reason"'</code>....similarly for forms in the submit event I want to override the action url with the reason before proceeding with submit.</p>

<p>I think I can do the anchor tag by grabbing attr('href'), encoding it and then using header location replace. But I have no idea about the form.... </p>

<p>Any suggestions on how to do this? </p>
