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>

Change font size for title post entry on mobile only
How do I change the font on my website title? How do I change font size on mobile website? Can I change the font size on my phone? How do I change fon...
How updraft plus executes the configured backup schedule? [closed]
How does updraft plus work? How long does an updraft backup take? How do I completely remove UpdraftPlus? How do I update my updraft plus? How do I ma...
Get list of terms that have posts in another term
How do I get current post terms? How do you find all terms? How do I find post taxonomy? How do I get post terms in WordPress? What is object ID in WP...