JSFiddle - React, Tailwind, and code Playground
HTML
<label for="device-9102" class="form-partner-label"><input type="checkbox" class="quote-chkbox" id="9102-chk"> 9102 IP Phone</label>
<input type="text" name="9102-quantity" class="form-endpoint-qty form-control" id="form-partner-9102">
JavaScript
$("#9102-chk").change(function() {
var is_checked = $(this).is(":checked");
if(!is_checked) {
$("#form-partner-9102").val("");
}
});