JSFiddle - React, Tailwind, and code Playground
by Chris Dennis
HTML
<input id="partner_customer" name="customer" type="checkbox" value="1"> Tick here
<p><input id="ship1" name="shipone" type="text">
JavaScript
$(document).ready(function() {
$('#partner_customer').on('click', function() {
console.log('clicked');
if (this.checked) {
$('#ship1').hide();
} else {
$('#ship1').show();
}
});
});