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 you do a meta query on an encrypted field?
Can we query encrypted field in Salesforce? How do I decrypt an encrypted field in Salesforce? Can we show the text encrypted fields in the search res...
How to select category on if function
What is the category of IF function in Excel? How do you use the category formula in Excel? What are the 3 arguments of the IF function? How do I do a...
Why is my page displaying small A Japanese character icons?
Why do some fonts show up as squares? Why can't I see other fonts? Why some Chinese characters show up as squares? How do I get Windows 10 to read Chi...