Changing the action of a form with JavaScript/jQuery

后端 未结 6 796
借酒劲吻你
借酒劲吻你 2020-11-29 19:40

I\'m having an issue that is driving me crazy. I\'m trying to modify the openid-selector to support facebook. I\'m using RPXNow as my provider so it requires the form to be

6条回答
  •  自闭症患者
    2020-11-29 20:31

    Just an update to this - I've been having a similar problem updating the action attribute of a form with jQuery.

    After some testing it turns out that the command: $('#myForm').attr('action','new_url.html');

    silently fails if the action attribute of the form is empty. If i update the action attribute of my form to contain some text, the jquery works.

提交回复
热议问题