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