- Add
data-post_id
attribute to checkbox and fill it with corresponding post ID. - On click on
compare
button (link) retrieve all post ids from checked checkboxes with JavaScript (jQuery) - Redirect to the comparision page with post IDs in url as GET parameters.
This is just one scenario how your task could be done.
PS your question is not related to WordPress itself but is form field of web application architecture.
Related Posts:
- 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
- jQuery Plugin to use WordPress functions in AJAX request
- Check if email address exists front end with AJAX in a plugin
- Form isn’t inserting data into database with ajax plugin
- How to put JQuery/Ajax inside shortcode?
- Ajax contact form widget plugin data not insert in database
- 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
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- wordpress add_action() issue in ajax call
- How to include my Ajax calls in one function instead of calling different ones every time?
- Using AJAX to run SQL statement and populate dropdown
- 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?
- 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
- checkout stripe with plugin contact form
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- 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
- 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
- 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
- Help with 4.6. Attachment response object in JSON API plugin
- How to load plugin before the wordpress jquery?
- How to include admin-ajax when loading external javascript
- How to add pagination to wpbakery grid?
- jQuery function didn’t work in my plugin
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- JQuery not working in my plugin [closed]
- Notepad sticky plugin
- Error with Image Slide plug-in/ s3slider in WP
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- wordpress, search form using ajax
- How to load wp_editor via AJAX
- How to handle cookies from a WordPress plugin on a cached page?
- Create shortcode to echo javascript
- where do I send my ajax calls
- Using WordPress to build membership Page
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Opening a JQuery modal window on click of a button with a JQuery plugin
- How do I make sure that my plugin only runs on article detail pages?
- WordPress API functions not working at AJAX functions.php call
- Passing PHP Variables to AJAX Loaded Pages
- wp_ajax action responds with 0
- Why AJAX response 0!
- force jQuery to load in the head
- Error jQuery(domChunk).live is not a function
- Send Array from JS to php file then insert it in wp database through a plugin
- AJAX call inside plugin class is not getting to it’s response function
- login form should redirect to register page for in 1st login next time it should redirected to home page
- main navigation menu disappear after adding jquery source file
- Dynamic input fields in WordPress Plugin
- Overwrite js code using WP_Footer
- Ajax call to php function doesn’t work PHP code
- Compare Ajax Data Results
- Frontend AJAX Request causes Error: ‘Call to undefined function add_action’
- Ajax Load More on Hierarchical Categories
- Storing Array of values into wordpress options
- How to add styling and script to a custom widget plugin
- Creating new option (add_option) from AJAX – Settings API
- Add HTML between feed items
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- Javascript not working
- AJAX login without a plugin does not work. when add a action to function.php
- Plugin constructor called multiple times
- how to call jQuery in admin as well as in homepage
- Trouble After Update, Removing Plugin
- Shortcode return is printing a 1 afterward
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Count div with class (.length) only shows 0 [closed]
- WordPress GiveWP Plugin showing blank page in none default theme [closed]