Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/timmywil/inputs-selector

New versions of jQuery make this plugin unnecessary. Deprecated.
https://github.com/timmywil/inputs-selector

Last synced: 21 days ago
JSON representation

New versions of jQuery make this plugin unnecessary. Deprecated.

Awesome Lists containing this project

README

        

A 5-line plugin that creates a selector for selecting any type of input element in a cross-browser way.
ex: $('input:inputs(text)').hide();
In most browsers, $('input[type=text]').doSomething() would work just fine, but not in IE!
The alternative is you could add classes to all the elements you want and select them that way, but this is just a very short timesaver.

$('tag:inputs(arg)')

The tag's 'type' attribute will be checked against 'arg'.