Changing the action of a form with JavaScript/jQuery

后端 未结 6 808
借酒劲吻你
借酒劲吻你 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:10

    just to add a detail to what Tamlyn wrote, instead of
    $('form').get(0).setAttribute('action', 'baz'); //this works

    $('form')[0].setAttribute('action', 'baz');
    works equally well

提交回复
热议问题