Markedcheckbox

Add javascript to get the value of checkbox or select box

Add javascript to get the value of checkbox or select box

You can also use the below code to get all checked checkboxes values.

  1. <script>
  2. document.getElementById('btn').onclick = function()
  3. var markedCheckbox = document.querySelectorAll('input[type="checkbox"]:checked');
  4. for (var checkbox of markedCheckbox)
  5. document.body.append(checkbox.value + ' ');
  6. </script>

One PDF Document, 2 pages [closed]
Can you separate pages in a PDF? Why does PDF Open on Page 2? How do I save a PDF so it opens 2 pages? How do I view all pages in a PDF? How can I sep...
post.php AJAX request not being called when publishing post
Why Ajax post is not working? How do I send an Ajax request on the same page? How do I know if Ajax is working? How Ajax get data from another page in...
What does WordPress uses to redirect users from one url to another?
Redirection The simplest way to add and manage redirects in WordPress is by using the Redirection plugin. Install and activate the plugin. ... You can...