I am trying to validate an input text field using the following code but when i type in any letter it throws the else yet i want it to allow any letter but does not begin with a digit
     <div class="input-group">
        <label for="c_name">Cashier Name
        <input id="c_name" type="text" name="cashier_name"> 
        </label>
    </div>
$(document).ready(function(){
    $( "#c_name" ).keyup(function() {
        var data= /^[A-Za-z]+$/;
    if ($("#c_name").val() == data) {
        $(this).addClass("cash");
        $(this).removeClass("cashs");
    }else{
     $(this).addClass("cashs");
     $(this).removeClass("cash");
    }
});
}); ```
I expect it to add a class cash if it begins with a letter.
 
     
    