JSFiddle - React, Tailwind, and code Playground

HTML

<input id=a onclick="alert('b')">

<label for=a>c</label>

JavaScript

$('label').click()