How to stop refreshing page after ajax call?

后端 未结 5 2065
我寻月下人不归
我寻月下人不归 2020-11-30 02:37

I am unable to stop refreshing page after ajax call. I have tried by putting e.preventDefault(); and return false; as well but again my page is refreshing.

I dont k

5条回答
  •  悲哀的现实
    2020-11-30 02:52

    Adding type="button" attribute to button solved my problem. Otherwise it was interpreted as submit operation.

提交回复
热议问题