JSFiddle - React, Tailwind, and code Playground
HTML
<input id="claimformns_freseniusWCBeanInsuredLocationCode" name="freseniusWCBean.insuredLocationCode" cfrequired="Mask" class="cfGradient inputField" type="text" cftype="claimLocationCode" value="" maxlength="12" spellcheck="false" tabindex="90069">
JavaScript
$(document).on("keyup", "#claimformns_freseniusWCBeanInsuredLocationCode", function() {
if ($('#claimformns_freseniusWCBeanInsuredLocationCode').val().substr(0, 1) == "-") {
$('#form_name').val("");
return false;
}
});