I have a checkbox like this:
- <input id="box" type="checkbox" name="logger" value = "YES">Uncheck this box if another ncs is logging for you<br>
Trying to set it checked like this:
- <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function()
{
document.getElementById("box").checked = true;
}
</script>
After this works, which it doesn't now, I'll put in conditional statements to check or uncheck it. That's why I'm not just setting it as checked in the input line.
Can someone please tell me why the code above is not setting the box checked?
Thanks!