This method does not work because the checkbox is not in the DOM:
$('input[type=checkbox][name=rememberme]').prop('checked', true);
I do not know how to use .on () because I do not need to bind the event:
$(elements).on( events [, selector] [, data] , handler );
How to set a checkbox that loads via ajax using jQuery?
source
share