I found a solution without ajax. I just put all the data to a json-file and used a jquery-client-solution as described here: http://css-tricks.com/dynamic-dropdowns/ .
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
- Minimal WordPress load for only `get_option` to work (because ajax…)
- Cannot update my options using wp_ajax
- 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
- How to make get_theme_mod work with AJAX in the customizer preview
- 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
- update_option is not saving an array, but saving the string ‘Array’
- 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 stop being directed to admin.php after sending request to admin-ajax.php
- update_option in WordPress AJAX
- How to perform a frontend HTTP call with AJAX when plugin save the new settings?
- How to load dynamic option with ajax
- How to display contact form 7 form in vanilla js without jquery in frontend
- WordPress Select Option Load Custom Fields
- 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 save options inside class
- AJAX call in backend results in empty update_option
- Ajax contact form returnig 0
- Ajax Form data is not posted back to the get_results()
- Ajax Form seems to post, but does not return
- using Ajax: call to undefined function get_option
- Bad Request when adding new post via ajax form
- WordPress REST API FormData: Form Not Submitted When No Files Attached
- ASP.NET MVC controller actions that return JSON or partial html
- Ajax in a settings page (update_option is undefined)
- admin-ajax.php vs Custom Page Template for Ajax Requests
- AJAX request from Chrome Extension to WordPress Website
- How to correctly load wordpress in a non WP script for AJAX request
- Why is admin ajax reloading my page
- CPU usage: AJAX and Heartbeat API on admin pages
- Solve cors problem using rest api or ajax
- Can part of my WordPress website be headless?
- Nonces, AJAX, script variables & security in WordPress
- Why would admin-ajax.php redirect to the home page for logged out users?
- Implementing an AJAX POST API call in wordpress
- Ajax WordPress Login needs to be stayed in current page Url without redirecting
- Loading comments in ajax – comment-reply function missing $args
- Woocommerce update product price via AJAX
- How do I query posts by a sub value with the API?
- Popup or admin/update notice on post/page edit screen without page refresh
- Enqueue script in plugin is not working
- WordPress action – Pass arguments into action in an AJAX call?
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- How to change request URL?
- Why the wp_localize_script() does not work correct in my case? ( /wp-admin/admin-ajax.php 400 (Bad Request) )
- Zip Files from custom fields
- Prevent AJAX caching from plugin
- ERROR while passing data from JS to PHP via AJAX
- ajax load more instead of pagination
- jQuery AJAX url wit variable
- How to pass array from jQuery to PHP with AJAX in WordPress?
- How to force the admin-ajax.php file to load over HTTPS?
- Unable to ajax request with meta_query
- get_body_class() in ajax envrionment
- How To Pass Theme Path In Javascript Ajax to Pass Id On another Page in WordPress Custom Page Template?
- Infinite Scroll
- Session variables lost during Ajax calls – WordPress – Sage Starter Theme
- Auto Select Child categories on Multiple Dropdown – Jquery
- ajax page template
- apply_filters, EMBEDS and AJAX not a friends? [duplicate]
- Data inserted in database, but ajax calls error function
- Using Javascript Callback from plugin in a theme
- Why does my Ajax Get request give a 400 bad request?
- wordpress ajax bad request 400
- How to stop a nonce from being cached in an inline script, or alternatives to regenerate it if expired?
- JQuery UI Autocomplete/Autosuggest WordPress