public
Created

  • Download Gist
nopaste.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
}).bind('reset', function(e) {
$(':input', this)
.not(':button, :submit, :reset, :hidden')
.each(function(i,e) {
$(e).val($(e).attr('value') || '')
.prop('checked', false)
.prop('selected', false)
})
 
$('option[selected]', this).prop('selected', true)
$('input[checked]', this).prop('checked', true)
$('textarea', this).each(function(i,e) { $(e).val($(e).html()) })
 
$('[placeholder]', this).blur()
 
return false
})

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.