I am using a <form:input> on my jsp. The input field should be editable but not nullable. Is there a way to handle this on the client side? i,e, disable the deletion of the value in the field but keep the field editable.
I am using a <form:input> on my jsp. The input field should be editable
Share
Disabling deletion would be inconvenient for users. It would be better to check the value when focus leaves the field and show error message if it’s empty. For example, using jQuery:
.