jQuery form action change
<p>Normally to change the action attribute of a form in jQuery I would do the following:</p>

<pre><code>&lt;form id="removeLightboxForm" action=""&gt;
...
&lt;/form&gt;

$('#removeLightboxForm').attr("action", "view/#close");
</code></pre>

<p>But I usually use this for when the action attribute is empty on the HTML form tag itself. I'm now trying to use this on a form where the action attribute already contains a default URL and is causing problems.</p>

<p>In this example, the form action is present:</p>

<pre><code>&lt;form id="removeLightboxForm" action="view/"&gt;
...
&lt;/form&gt;
</code></pre>

<p>But when I do this:</p>

<pre><code>$('#removeLightboxForm').attr("action", "view/#close");
</code></pre>

<p>I end up with the new URL/action being added to the original URL/action, for example:</p>

<pre><code>&lt;form action="view/view/#close" ...
</code></pre>

<p>Is this how it's supposed to work or am I doing something wrong?</p>
