views:

69

answers:

1

Hey.

I'm trying to set a hash value in a form's action, to keep it when the form is submitted.

Firefox allows me to update the hash and redirects accordingly, but IE doesn't. I initially thought this was related to IE not allowing hash values in the action attribute at all, but it seems I can't dynamically set the action at all in IE - with a hash or not? Is that right?

I'm using the following jQuery:

$("#options-form").attr('action', '#' + hash);

To update:

<form id="options-form" action="" method="get">

(On a sidenote, this wasn't needed in Firefox, because FF appears to preserve the current hash if it was only the GET params that changed.)