I have a checkbox on the page and let's say that when the page is loaded, I need it to press on, a simple attribute substitution will give nothing, since you need to run functions that are assigned to the checkbox. I tried
$('.checkbox').trigger('change'); $('.checkbox').trigger('click'); $('.checkbox').change(); but none of the methods works.
$('.checkbox').prop('checked', true)- Raz Galstyan