Ultimately the form and its old handler were being trashed by some other element in the website. Could have been WP or one of the few plug ins I could not remove as it is the page builder (Elementor, Elementor Essentials). After disabling all the other plug ins it is narrowed down to that. The code solution was:
….
jQuery(document).on('submit', '#ajax-add-to-waitlist-form', function(e){
e.preventDefault();
…….
Instead of
jQuery('#ajax-add-to-form').on('submit', function(e){
e.preventDefault();
Related Posts:
- Ajax loaded form replaces form action with Ajax url
- Show success or error messages in Ajax response to WordPress custom registration form
- WordPress admin-ajax.php 400 bad request
- Ajax contact form return 0
- Submitting my form to the database and then redirecting to payment site
- ajax form function error
- How can I fetch loop of post titles via AJAX?
- Do I require the use of nonce?
- WordPress Ajax always returns a 404 error
- problem with ajax and the path to the php page
- Security – Ajax and Nonce use [closed]
- Looking for a better way to handle an ajax script that pulls in post data on click
- Targeting single page with JS
- POST from jQuery to PHP
- Can’t use get_results() in ajax query
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Problem with WordPress Ajax form
- Click loads template via ajax
- How to retrieve the content (with a specific ID) via ajax by clicking a link tag
- Access/update database with jQuery
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- Passing jQuery value using Ajax to a page template
- ajax_object is not defined when ajax calls the function
- How to speed up admin-ajax.php in wordpress
- Why is this Ajax not working?
- Sending jsPDF documents to the server
- Use ajax from function.php
- Ajax return code 400
- How to test nonce with AJAX – Plugin development
- ajax, right way to do it and make it works?
- How to store data from multiple forms using ajax and php
- WordPress ajax doesn’t display object method on jQuery .change() function
- Ajax date_query not working past the first iteration
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- AJAX pagination, update current page
- adjust section according to country?
- dynamic dependent select dropdown
- Change “add to cart” button color based on Woocommerce product category [closed]
- Ajax request returns ‘Array’. How to output the actual results?
- Ajax call return 404
- How to add a do_action on refreshing of WP customizer?
- [jQuery]Adding shortcode
- Display parent and child taxonomies in separate drop down select fields
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Fancybox type popup window that’s not an iframe
- Can I use a jQuery Ajax request in Code Snippets Plugin for WordPress?
- Form Security: nonce vs. jQuery
- How do I Import / Upload Files with jQuery AJAX?
- Pull GetOption() variable into jQuery dynamically created html
- Function won’t run onclick using Ajax
- How to keep track of when a vote is cast?
- WordPress plugin admin page – using WordPress function in linked php file
- A $_POST should occur when submit form but is not?
- Shortcode to pull posts
- Ajax search shows all results when user empties input?
- Why i can’t get custom fields value or post ID via Ajax?
- Output votes to div dynamically in wordpress
- Get uploaded image and attach it to the new post
- Admin-ajax php not working on new wordpress version
- Proper way to use WordPress function with AJAX PHP file
- Live search from database table
- Add a counter for mouseovers (custom field)
- Accessing an API with jQuery and AJAX
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- How to set variables with AJAX request to use in another function in WordPress
- Search Ajax Call – Use Form Data in Response
- Why does PHP called with Jquery AJAX not allow additional php code to be added?
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- Database entry removed on browser refresh, Ajax PHP jQuery
- How do I call a value from the datase using ajax
- Ajax result show in console if is called outside function and not showing in array
- Admin-ajax.php 404 error
- Where to add my PHP codes for AJAX Jquery to work?
- How to pass values from one function to the other using an array variable
- How to change PHP variables with AJAX request in WordPress
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- How to use wp_ajax_set_post_thumbnail?
- Can’t make lazy load for my site, help!
- How to reload a php script, using AJAX and jQuery
- wp_ajax_ 400 Bad Request
- update_post_meta Not Processing Array Data (Not Sure What I Am Missing)
- Input field duplicates on form submit by jQuery
- How to echo a PHP code into WooCommerce variation product?
- How to call a function from functions.php with ajax?
- Custom theme admin-ajax.php 400 (Bad Request)
- number of posts with “Load More”
- Find the method which AJAX GET calls
- Ajax not updating to database
- WordPress AJAX load post metadata in modal
- Ajax Load more CPT via shortcode
- ajax form with multiple submit buttons and values
- How to run ajax in WordPress Post?
- Adding instant search to wordpress page
- Add php function into .js file (for tinyMCE button)
- Fatal error: Uncaught Error: Call to undefined function wp_nav_menu()
- Data inserted in database, but ajax calls error function
- Load Meta box value into div AJAX [duplicate]
- getJSON response to PHP
- ajax problems on loading page [closed]