Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/timmywil/inputs-selector
- Owner: timmywil
- Created: 2010-03-03T18:39:22.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-03-05T19:19:02.000Z (almost 15 years ago)
- Last Synced: 2024-10-16T00:44:58.396Z (2 months ago)
- Language: JavaScript
- Homepage: thisismedium.com
- Size: 74.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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'.