how to clear a field in jquery code example Example 1: clear input jqueyr $('#inputButtonID').val(''); Example 2: clear input field jquery $('#shares').val('');