Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Created February 22, 2010 03:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miketaylr/310734 to your computer and use it in GitHub Desktop.
Save miketaylr/310734 to your computer and use it in GitHub Desktop.
//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;
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment