event call when checkbox is checked code example Example: trigger click on checkbox jquery $('#foo').trigger('click');