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>

Validate form in page in modal window
How do you validate a modal form? How do I validate a form before submitting? How do I submit a bootstrap modal form? What is bootstrap validation? Wh...
Responsive header image
What is a responsive header? How do I make my WordPress header image responsive? How do you make a full width image responsive? What is header image i...
insert metadata on title
How do you add meta title? How do I embed metadata in Word? Is a title metadata? How do I add a meta description? What is the difference between title...