Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Created February 22, 2010 03:00
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
//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