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>

Add Ajax search to Astra theme [closed]
Enabling The Search Icon At Header Login to Dashboard. Navigate to Appearance -&gt; Customize link. Click on Layout -&gt; Header -&gt; Primary Header....
How do I find breaking changes while upgrading wordpress? [closed]
Will updating WordPress break my site? How do I check WordPress update history? How do I update WordPress without losing content? What happens when yo...
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...