I believe it is because you are trying to set object properties that are undefined.
Your javascript should look like this
var measrumentData = {
profile_name:null,
value_one:null,
value_two:null
};
// Grab our post meta value
measrumentData.profile_name = $( '#savem #profile_name' ).val();
measrumentData.value_one = $(' #savem #value1').val();
measrumentData.value_two = $(' #savem #value2').val();
or
var measrumentData = {};
// Grab our post meta value
measrumentData['profile_name'] = $( '#savem #profile_name' ).val();
measrumentData['value1'] = $(' #savem #value1').val();
measrumentData['value2'] = $(' #savem #value2').val();
Related Posts:
- Issue developing an AJAX form with WordPress
- jQuery’s .on() method combined with the submit event
- Get Previous & Next posts by Post ID
- 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
- AJAX Implementation
- Custom ordering fails after AJAX post filter
- 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
- Updating a checkbox value to database for specific row in table
- Ajax image upload with media_handle_upload and form.js
- Ajax post returning full html page as response
- How to handle 400 status in Ajax [duplicate]
- 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
- MySQL select query with ajax
- 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
- Send checkbox status with Ajax / JSON and save it
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- Using get_theme_mod in php ajax form doesn’t work
- How to create a form button that executes a function?
- How to stop being directed to admin.php after sending request to admin-ajax.php
- How to display contact form 7 form in vanilla js without jquery in frontend
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- 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
- Not getting ajax success response on insert/update row to database
- Registration form AJAX check for existing username (simple version)
- Ajax show custom post data form & script
- Is not using admin-ajax to ajax submissions okay?
- Using AJAX on Contact-form the WordPress way
- 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
- How to use Ajax with WordPress
- Google Maps API throws “Uncaught ReferenceError: google is not defined” only when using AJAX
- Initialize TinyMCE editor / visual editor after AJAX insert
- WP-AJAX vs WP REST API: What to use for requests to the website from outside?
- How to implement AJAX post navigation into WordPress?
- Template plugin for blog posts? [closed]
- Is it OK to use a system cron to trigger a function hooked into the AJAX API
- How to make ajax content indexable by search engines?
- Conditional action hooks
- Is it safe to use $_POST directly in my plugin instead of using admin-ajax.php to receive data from ajax?
- How to make get_theme_mod work with AJAX in the customizer preview
- How to Create a Admin User for A WordPress Site via MySQL (PHPMyAdmin)?
- Fatal error: Call to undefined function get_post() with ajax
- wp_create_nonce() in REST API makes user->ID zero
- Plugin: AJAX query external API to sync to tables
- splitting the URL using jQuery
- How do I get reusable blocks via frontend REST API?
- WP Ajax never returning any data / calling action
- How to load content from many posts on a page, only if needed
- WordPress Settings api data not sanitized if i use ajax
- Ajax call with javascript in post content (not enqueued)
- What’s the latest I can hook into wp_ajax_%?
- Nonce doesn’t validate in nopriv call
- Admin-ajax.php 400 error in custom theme
- Why does check_ajax_referer give a 403 error on https websites?
- Hide Load more Ajax button if there is no more users to load or less than the number?
- How to get setting from separate file?
- Contact form – ajax, wp_mail
- admin-ajax.php calls fail if referrer is sent with 500
- AJAX not working when clicking load more button, when two terms are present in tax_query
- AJAX – get_posts for a specific post type returns empty
- Admin Ajax always return 0
- Ajax call undefined index
- When I add metadata, metavalue length is added in to the value in some cases
- error_log() not working within wp_ajax_{action} handler
- Is there a way to add ajax hooks without editing the functions.php file?
- AJAX is not submitting data to database
- Turn a URL into content preview
- Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC
- Is it a good idea to init ajax functions only while ‘DOING_AJAX’
- Page reload occurs before request finishes
- AJAX requests within templates
- cannot log in to the mysql server (wamp and wordpress)
- how reduce fetch/XHR response time