Changing form action attribute in IE?

I am trying to set a hash value in a form action in order to preserve it when submitting a form.

Firefox allows me to update the hash and redirect accordingly, but IE does not. Initially, I thought this was because IE does not resolve the hash value in the action attribute at all, but it seems like I cannot dynamically set the action at all in IE - with a hash or not? Is it correct?

I am using the following jQuery:

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

To update:

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

(This was not necessary in Firefox in the browser, because FF seems to save the current hash if it only changed the GET parameters.)

+3
source share
1 answer

querystring ?

. <form id="options-form" action="mydestination.html?specialvarname=specialvalue" method="get">

, , -...?

0

Source: https://habr.com/ru/post/1740956/


All Articles