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>

How do i create a an upvoting system like that of producthunt or coinhunt? [closed]
How do I get Upvotes product hunt? What is an upvote on product hunt? How do you promote on product hunt? How do I upvote my foundation? How do you ge...
Blog page getting redirected to wp login page problem!
Here's how to troubleshoot the login redirect loop issue by deactivating your WordPress plugins Access your website's wp-content directory using an FT...
I want to display category post on WordPress single page
Now, if you want to display all your posts from a specific category on a separate page, WordPress already takes care of this for you. To find the cate...