As suspected, WordPress was treating the button as type="submit" fixed by doing:
<button type="button" onClick="addProperty()">Add property</button>
Related Posts:
- jQuery’s .on() method combined with the submit event
- Nonces and Cache
- How to HTML5 FormData Ajax
- admin-ajax.php doesn’t work when using POST data and Axios
- Contact Form 7 Custom Post Action
- Custom Form with Ajax
- ajax – why multiple calls to wp_create_nonce() return same value?
- How to link WordPress heartbeat to ajax form
- Ajax form submission from admin panel
- Confused on AJAX submit form through page template
- how to use reCaptcha v3 in wordpress custom login form?
- Prevent page reload after ajax form submission
- submitting form via admin-ajax.php returns 0
- Admin Ajax and HTML5 Formdata
- jQuery Ajax passing empty parameters to my function?
- Using ajax with wordpress
- Using AJAX with Forms
- Ajax image upload with media_handle_upload and form.js
- Ajax post returning full html page as response
- Sending variable from ajax on form submit
- contact form ajax empty response error message
- Can’t trigger an AJAX function with a submit button in the dashboard
- Dynamically add more fields/remove last field in a form
- Ajaxify Form That Submits To Same Page To Display Post Data [closed]
- Using admin-ajax prevents regular php form submission
- Specify ABSPATH in jQuery url
- ajax form is returning the dreaded “[HTTP/1.1 400 Bad Request” and a zero
- Output multi-steps form results in same page
- Using get_theme_mod in php ajax form doesn’t work
- How to create a form button that executes a function?
- How to display contact form 7 form in vanilla js without jquery in frontend
- Should wordpress nonce be placed in html form or in javascript file
- Add Server Side validation in Ajax mail form
- How to send automatic response after form submission without plugin
- Opening Modal popup on Ajax form submission
- Registration form AJAX check for existing username (simple version)
- Issue developing an AJAX form with WordPress
- Ajax show custom post data form & script
- Using AJAX on Contact-form the WordPress way
- Error while submitting form using AJAX and php
- Ajax contact form returnig 0
- Ajax Form data is not posted back to the get_results()
- Using AJAX for dynamic settings pages
- Ajax Form seems to post, but does not return
- Bad Request when adding new post via ajax form
- WordPress REST API FormData: Form Not Submitted When No Files Attached
- jQuery: Performing synchronous AJAX requests
- FormData append not working
- Best way to end WordPress ajax request and why?
- Why use wp_send_json() over echo json_encode()?
- Why not register shortcodes if is_admin dashboard?
- WordPress AJAX File Upload – FrontEnd
- Multiple ajax nonce requests
- Update user meta using with ajax
- WordPress function that makes HTML safe to be sent via AJAX request
- How to properly use wp.ajax.post?
- AJAX vs Fragment Caching for W3 Total Cache [closed]
- Detecting post type within init action
- Delete row of custom table in WordPress using AJAX
- jQuery Autocomplete in WordPress
- Metabox cloning via Admin Ajax call issue
- Change theme based on window size
- help on wp_editor via ajax load [duplicate]
- ajax and nonce when JavaScript is in a seperate file
- Class WP_Rewrite not found
- Prevent wp_debug from polluting ajax within plugin
- How to allow to user non logged in WP system upload in media library?
- WordPress function to get term or post object by id
- Buddypress ajax problem after adding new groups sub nav [closed]
- How to check username availability with ajax at registration
- Conditional success callback based on Ajax Response not working
- Can a wp_nonce created from domain 1 to be verified on domain 2?
- admin-ajax.php slow, how to speed it up?
- How to use several wp_ajax_ functions for different queries?
- Three level taxonomy dropdown frontend
- I’m getting a 401 while calling the wp-json endpoint via ajax
- Unable to parse JSON response from wp_send_json_success [closed]
- Keep getting 400 Bad Request error when trying out AJAX on custom theme
- Ajax not working properly
- problem with WordPress ajax
- How to set post_id to 0 when you upload image via Add media button. (async-upload.php)
- Ajax simple experiment
- Using a custom plugin to capture input data via Ajax and PHP
- How to load new text widgets and polls into the sidebar without reloading the page?
- How to make tabulator ajax call in wordpress?
- How would you update a frontend form with AJAX
- Updating User Meta with Array on Click of Button AJAX
- Radio buttons live refresh in the customizer
- Admin ajax add tag callback
- Stop auto load wp-admin admin-ajax.php
- wp_enqueue_script() doesn’t work with AJAX
- $wpdb Ajax not redirecting to main page
- how reduce fetch/XHR response time
- wordpress ajax bad request 400
- Custom WP rest api endpoint only working on non https?
- Blocking admin-ajax.php from outside domain
- How to stop a nonce from being cached in an inline script, or alternatives to regenerate it if expired?
- JQuery UI Autocomplete/Autosuggest WordPress
- Object name undefined using localize script
- Help with jquery/ajax requests