You are giving your own solution here. Use the onchange event for the dropdowns, or the .change event in the jquery API.
Otherwise, this is called ‘cascading’ – dropdowns.
Also, I don’t think this has anything to do with wordpress. Similar to this question
Related Posts:
- jQuery Plugin to use WordPress functions in AJAX request
- Form isn’t inserting data into database with ajax plugin
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Help making my pagination plugin better
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- jQuery AJAX call not executing in Plugin
- Why is my ajax call refreshing the page?
- What’s the point of using WordPress’s built in admin-ajax.php?
- Admin-ajax.php is dying “0” without processing function
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Ajax with jQuery UI dialog not working
- Check if email address exists front end with AJAX in a plugin
- Retrieving a Value from a wp-database
- How to put JQuery/Ajax inside shortcode?
- Using a custom plugin to capture input data via Ajax and PHP
- Ajax contact form widget plugin data not insert in database
- WordPress WPforms customization
- Ajax fail and get 504 error
- How can I inject options into an select tag inside the widget form?
- Display wordpress post’s in popup?
- Using color picker in plugin, does input attribute order matter?
- Post Comments with Ajax in WordPress
- how to insert data in wordpress table usnig jquery ajax
- Submit Form data to another page via Ajax (WordPress Way)
- wordpress add_action() issue in ajax call
- How to display checked posts on another page over AJAX? (like comparasion style)
- Ajax Plugin Not Echoing Response
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- How to include my Ajax calls in one function instead of calling different ones every time?
- Ajax request sends url rather than data
- wc_get_template_part doesnt display the content [duplicate]
- Jquery POST Ajax Return null data in wordpress
- How do I reinit WordPress plugins dynamically using jS?
- login form should redirect to register page for in 1st login next time it should redirected to home page
- WP Ajax DB issues
- Cannot pass value variable to WP AJAX functions
- Ajax Call not Working in Plugin
- jQuery Ajax not loading page with ACF fields
- JS working when used normally but not in wordpress
- Hide button after form submit and save state to localstorage
- checkout stripe with plugin contact form
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Ajax call to php function doesn’t work PHP code
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- Help with customising love it plugin (use within foreach)
- WordPress Feedback popup with date saved into table
- Not getting result using ajax on wordpress
- WordPress ajax not working in registration
- AJAX doesn’t pass variables to the php function in the plugin
- How do I convince this button to do something when it is clicked?
- Like/Dislike Bar not working when updating
- Ajax, jQuery and WordPress
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- WordPress plugin ajax post parameter
- Capturing POST data
- Plugin Admin Page Ajax-Admin call returning 0, URL set correctly. Implemented localized scripts but did not fix it
- Load css classes after using ajax calls
- Jquery post responses 500 error after some time and lastly an 503 error
- Ajax button “Load more” is not loading correct language version posts for logged out users
- I am trying to add form using ACF plugin and acf_form() function, but my user fields dont show up properly
- Ajax response from Media Selection does not update ALL information more than once
- How to verify/test that a custom built wordpress theme is as secure as possible?
- jQuery’s .on() method combined with the submit event
- jQuery and AJAX Not working with Select Form Element
- Loading shortcode with ajax
- WordPress Custom Application form
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- Adding a jquery script to plugin contact form 7
- Why plugin ajax response is -1?
- WordPress Ajax Callback
- When to use action hooks and plugins
- Loading jQuery UI in the head
- jquery not calling php function
- Take input from form and pass it to function using a wp-plugin
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- Does deleting a Plugin via the WordPress admin ‘completely’ remove the code?
- AJAX Load more start with x posts
- Asynchronous request in wordpress
- Custom meta box with jQuery.sortable custom post type list
- Contact Form 7 “non-selectable” options in a drop down [closed]
- jQuery(‘#news-ticker’).cycle is not a function
- Linking form to user meta fields
- Memcaching recurring SQL Queries
- How can I adjust my function so the page editor still loads in the backend?
- add products to WordPress site automatically
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Submitting form to PHP
- Looping the data from WordPress database using foreach
- Mixed content error after adding SSL certificate
- Meta Key array building with multiple input values from fields
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- submit form data to wordpress existing database table using my plugin
- Submitting my form to the database and then redirecting to payment site
- Theme Load Error
- display user input using ajax in wordpress
- Animate like Stack exchange frequently asked questions [closed]
- How do I call an action hook into wp_ajax hook callback function