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