I do have a checkbox list and when you click on one of them it should be update the page via AJAX
$(document).on("click", ".selectlist input", update_results);
So my client asked me to make one of those "checked" by default. basically you can do it with this code
$('input#my_id').prop('checked', true);
But the thing is the AJAX will be work just when you click on the item. Is there anyway either change the AJAX to when input is checked not click or make the checkbox clicked onLoad?
Thanks