2 Aug 2015 by Afzaal Ahmad Zeeshan
Apart from what you have shared, the page only refreshes in case of when the result (of expression) is true. That is because you have not stopped the code from doing what it is intended to do, submit the form. To overcome this, write this function to your code. event.preventDefault() would...