Skip to content

estelle/jQuery-html5-input-pseudo-selectors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

HTML5 input pseudo selectors

Copyright (c) 2009, Mike Taylor, http://miketaylr.com

MIT Licensed: http://www.opensource.org/licenses/mit-license.php

Usage

$(':search').whatever(); OR $(':input:search').whatever() selects all <input type="search"> elements, etc.

Thanks to Paul Irish and Ben Alman for non-medicated feedback!

And thanks again to Paul Irish for making it loopier.

Unit Tests

http://miketaylr.com/test/qunit/html5pseudoselectors.html

Note:

Rather than function(elem){return type === "foo"} we use elem.getAttribute("foo") because unknown input types are treated as type=text.

About

Extending jQuery / Sizzle with shortcut selectors to the new html5 input types.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%