jQuery & AJAX login form

后端 未结 3 1959
清酒与你
清酒与你 2021-01-07 10:07

I am busy developing a site where I have a login box in the top right corner. I want the user to be able to log in on the same page, without refreshing.

OK, I got th

3条回答
  •  长情又很酷
    2021-01-07 10:53

    I don't really use jQuery, but my guess is that the post and click events aren't around anymore since it's been updated via ajax.

    You've got to add those events again.

    You could create an attach() function that selects the stuff you want and attaches the events and run it on callback of your request.

提交回复
热议问题