jquery empty input when click code example Example 1: clear input field jquery $('#shares').val(''); Example 2: empty the value of an input in jquery $('#field').val('');