MailChimp: Grow sales with Customer Journey Smarts
Labels should have “for” attributes that match the ID of the input they are labeling. This means we can snag that attribute and use it in a selector to trigger a click on the input itself. Assuming of course you have some reason to watch for clicks on inputs.
labelID = $(this).attr('for');