I have a simple question about Jquery and checkboxes. I have never worked with JQuery before but basically I have a checkbox and it will be set to "checked" by default when the user enters the page. I want jquery to detect that it is checked which will then trigger a separate function.
I've only been able to get this to work when the user click on the check box but I don't want it to do that. All this will be done without the user touching anything.
Here is the function that I have which doesn't work :
if ($('#discount:checked').val!== null) { changeprice(); };
Thank you in advance!