public
Last active

  • Download Gist
formsuitest.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//http://miketaylr.com/code/html5-forms-ui-support.html
 
 
testSupport: function(){
var frowny = ":("; //no support frowny!
var inputs = $('input');
inputs.each(function(){
var $this = $(this);
$this.val(frowny)
.closest('td').next().text(
function(){
return $this.val() !== frowny;
}
);
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.