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>

Is there any way to clear cache when making REST API request?
How do I clear my API gateway cache? How do I clear my application cache? How do you clear an API? How do I automatically clear cache? Does postman ca...
Why when I search for a specific term on my WordPress site I am redirected to the home page and not to the archive page? [closed]
Why is my website redirecting to another page? How do I fix a redirect loop in WordPress? How do I turn off redirect in WordPress? How do I change my ...
Wordpress slow query
WordPress can be prone to slower queries on the wp_posts table, if you have a large amount of data, and many different custom post types. If you are f...