Submit form action using AJAX and prevent page refresh or redirect.