Skip to main content
added 1 character in body
Source Link
Alexey
  • 1.5k
  • 11
  • 22
  1. Add data-post_id attribute to checkbox and fill it with corresponding post ID.
  2. On click on compare button (link) retrieve all post ids from checked checkboxes with JavaScript (jQuery)
  3. Redirect to the comparision page with post IDs in url as GET parameters. This is just one scenario how youyour task could be done.

PS your question is not related to WordPress itself but is form field of web application architecture.

  1. Add data-post_id attribute to checkbox and fill it with corresponding post ID.
  2. On click on compare button (link) retrieve all post ids from checked checkboxes with JavaScript (jQuery)
  3. Redirect to the comparision page with post IDs in url as GET parameters. This is just one scenario how you task could be done.

PS your question is not related to WordPress itself but is form field of web application architecture.

  1. Add data-post_id attribute to checkbox and fill it with corresponding post ID.
  2. On click on compare button (link) retrieve all post ids from checked checkboxes with JavaScript (jQuery)
  3. 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.

Source Link
Alexey
  • 1.5k
  • 11
  • 22

  1. Add data-post_id attribute to checkbox and fill it with corresponding post ID.
  2. On click on compare button (link) retrieve all post ids from checked checkboxes with JavaScript (jQuery)
  3. Redirect to the comparision page with post IDs in url as GET parameters. This is just one scenario how you task could be done.

PS your question is not related to WordPress itself but is form field of web application architecture.