How to stop refreshing page after ajax call?

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

Leave a Comment