you should use
return false;
at the end of the js function send_invitation() to prevent default reload action
Related Posts:
- ajaxurl not defined on front end
- Using AJAX in a plugin to submit form – REALLY confused
- Using Ajax call in jQuery doesn’t work in widget
- Admin-ajax.php appending a status code to ajax response
- Ajax in WordPress – path issue
- how to search users by ajax live search
- Create custom HTML/JS app inside page
- jquery & ajax sending data to php
- Ajax submit result opens in admin-ajax.php
- insert query on a custom table using ajax with jQuery plugin Jeditable
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- Data not insert and update through ajax and jQuery in admin page?
- WP ajax requests not stacking?
- ajax working when function is on child theme but not in plugin page
- Plugin Form Submitting to admin-ajax.php instead of admin-post.php
- Ajax +wordpress onClick link redirect to new page and create html content
- Get cat parameter from admin-ajax
- Ajax on the Administration Side of plugin – returns 0
- Jquery php request is returning a weird result
- WordPress Ajax not returning Response
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- wp_ajax add_action fuction won’t fire on custom jQuery action
- Filterable posts using categories
- How to get values from Tinymce visual editor popup?
- WordPress function is not called and ajax return 0
- Ajax call not working with
- jQuery AJAX submit form
- FormData append not working
- jQuery’s .on() method combined with the submit event
- Why does WordPress use outdated jQuery v1.12.4?
- How to add a javascript snippet to the footer that requires jQuery
- Why does WordPress add 0 (zero) to an Ajax response?
- Plugin Form Submission Best Practice
- How to include jQuery and JavaScript files correctly?
- $_POST form request with admin-post
- How Do I Use jQuery UI In My Plugin
- Handling results from data hooked into admin_post
- Saving data-URI to media library
- What is the real intention for admin-post.php?
- Remove profile picture option (and other things) from profile.php (in admin)
- Nonces can be reused multiple times? Bug / Security issue?
- How can I run AJAX on a button click event?
- WordPress AJAX File Upload – FrontEnd
- How-to implement admin Ajax inside an admin WP_List_Table?
- Test to see if jQuery or Prototype is queued by another plugin?
- What is the recommended way to create plugin administration forms?
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- Empty POST data on server on AJAX request using Angular $http
- jQuery in header or footer
- Do I require the use of nonce?
- Hook the Keydown Event in the TinyMCE Post Editor
- Using AJAX in FrontEnd with WordPress Plugin Boilerplate (wppb.io)
- jQuery and AJAX Not working with Select Form Element
- Build path for a custom portfolio plugin
- Add a jQuery function to admin pages
- How to Add a .js file Only in one specific Page Dynamically to Head
- wp_localize_script $handle
- How to link WordPress heartbeat to ajax form
- Help adding image upload functionality to widget
- How to enable users to down-vote in this simple voting counter (that uses the post meta)?
- How to trap “Publish” button to check for meta box validation?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Post from front-end with post types, categories and taxonomies
- Front-End Form Submission in Shortcode
- Check spam in custom form – akismet
- Adding callback function for wp_ajax_ has no effect
- get all products of one category
- Use js script from one plugin in another plugin
- Get returned variable from a function to add_shortcode function
- Use a PHP file as action for a form in a WordPress plugin, what’s the correct way?
- Plugin Settings not Saving on Ajax re-ordered table
- Using AJAX to return search form results
- How to post form in ajax mode and handle it in wordpress
- POST from jQuery to PHP
- Why is my ajax call refreshing the page?
- wp_enqueue_style built in styles
- WP_LOCALIZE_SCRIPT doesn’t work
- What is the difference between these two methods of writing $ instead of jQuery in WordPress [closed]
- Timeout on Admin-Ajax?
- Admin-ajax.php is dying “0” without processing function
- Front-End Interfaces Without Shortcodes
- Plugin admin page meta_box toggle and order state not saving
- WordPress plugin options and jQuery
- Registration e-mail check with AJAX
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- Best Practices for Creating and Handling Forms with Plugins?
- Problem with WordPress Ajax form
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Cannot search post by taxonomy
- Plugin options page – form with two different submit buttons
- jQuery Plugin to use WordPress functions in AJAX request
- WordPress Ajax callback function from plugin – OOP
- WP AJAX is not working, always returns 0
- Ensure function has completed before allowing another Ajax call
- Mixing Regular Javascript With jQuery in a Plugin
- Loading jQuery and jQuery plugin script files correctly [duplicate]
- Accept AJAX call with serialized form data
- How to sanitize user input?
- Check if email address exists front end with AJAX in a plugin