I\'m trying to send my comment form using ajax, right now when user inserts a comment then whole page gets refreshed. I want this to be inserted nicely without page getting
In your javascript, you call for the class .commentForAjax. You should call the ID:
$(document).on('submit','#commentForAjax', function(e){ // ... });
Hope this helps. R