I am building a mobile web app with jQuery Mobile and I want to check if a checkbox is checked. Here is my code.
if (document.getElementById('remember').checked) { alert("checked"); } else { alert("You didn't check it! Let me check it for you."); }