set checkbox checked jquery and click trigger code example Example: trigger click on checkbox jquery $('#foo').trigger('click');