Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juno/jquery-requiredstar-plugin
displays required star inside INPUTs
https://github.com/juno/jquery-requiredstar-plugin
Last synced: 3 months ago
JSON representation
displays required star inside INPUTs
- Host: GitHub
- URL: https://github.com/juno/jquery-requiredstar-plugin
- Owner: juno
- License: gpl-2.0
- Created: 2010-11-15T06:03:21.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-05-19T16:00:39.000Z (over 13 years ago)
- Last Synced: 2024-05-29T03:25:53.733Z (6 months ago)
- Language: JavaScript
- Homepage: http://juno.github.io/jquery-requiredstar-plugin/
- Size: 105 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
jQuery Required Star Plugin
====Required Star plugin for jQuery inspired by GitHub Jobs pages.
You can see a working demo at [http://juno.github.com/jquery-requiredstar-plugin/](http://juno.github.com/jquery-requiredstar-plugin/).Usage
----### Markup
### Code
$(function() {
$('input, textarea').requiredStar();
});### CSS
input[type=text].required, input[type=password].required, textarea.required {
background: white url(required_star.png) no-repeat 100% 50%;
}
textarea.required {
background-position: 100% 0;
}
input[type=text].valid, input[type=password].valid, textarea.valid {
background-image: none;
}Notes
----* Works in following browsers
* Chrome 8
* Firefox 3.6
* Safari 5Changelog
----* v0.0.1 (Nov 17, 2010)
* Initial releaseLicense
----This plugin is dual licensed under the MIT and GPL licenses, just like jQuery itself.
Credits
----* [Junya Ogura](http://sooey.com/)
* This plugin inspired by [GitHub Jobs](https://jobs.github.com/) job posting form