Friday, 14 September 2012

Reset form values with Javascript

$(this).closest('.form-container-table').find('input,textarea').val('')

Example:  <a onclick="$(this).closest('.form-container-table').find('input,textarea').val('')" href="javascript:;">RESET</a>

No comments:

Post a Comment