Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankitjain28may/place-holder.js
Include placeholder in input fields with this simple place-holder.js
https://github.com/ankitjain28may/place-holder.js
Last synced: 7 days ago
JSON representation
Include placeholder in input fields with this simple place-holder.js
- Host: GitHub
- URL: https://github.com/ankitjain28may/place-holder.js
- Owner: ankitjain28may
- License: mit
- Created: 2016-06-27T18:40:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-28T18:39:02.000Z (about 7 years ago)
- Last Synced: 2024-10-11T17:49:46.212Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://ankitjain28may.github.io/place-holder.js/
- Size: 460 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# place-holder.js
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/02621d4f9368486e99157258f89f44fa)](https://www.codacy.com/app/ankitjain28may77/placeholder-js?utm_source=github.com&utm_medium=referral&utm_content=ankitjain28may/place-holder.js&utm_campaign=Badge_Grade)
[![Code Climate](https://codeclimate.com/github/ankitjain28may/place-holder.js/badges/gpa.svg)](https://codeclimate.com/github/ankitjain28may/place-holder.js)
[![Test Coverage](https://codeclimate.com/github/ankitjain28may/place-holder.js/badges/coverage.svg)](https://codeclimate.com/github/ankitjain28may/place-holder.js/coverage)
[![Issue Count](https://codeclimate.com/github/ankitjain28may/place-holder.js/badges/issue_count.svg)](https://codeclimate.com/github/ankitjain28may/place-holder.js)
[![npm version](https://badge.fury.io/js/place-holder.js.png)](https://badge.fury.io/js/place-holder.js)
[![npm](https://img.shields.io/npm/dt/place-holder.js.svg)](https://www.npmjs.com/package/place-holder.js)>place-holder.js is a less than 1 KB(444 bytes) Javascript file based on Jquery which is used to include placeholder in your input fileds. Don't need to include placeholder manually of every input field just include place-holder.js.
## Getting Started
First include jQuery to your web page.
There are several ways to start using jQuery on your web site. You can:
Download the jQuery library from jQuery.com
Include jQuery from a CDN, like Google, MicrosoftDownloading jQuery
The jQuery library is a single JavaScript file, and you reference it with the HTML 'script' tag (notice that the 'script' tag should be outside the 'body' section at the bottom):```html
```
After including jQuery you need to include placeholder.js in your web page by downloading this project or clone is project
Include place-holder.js after the jquery library```html
```
Note: Place the downloaded file in the same directory as the pages where you wish to use it.
## Install using npm
```shell
npm install place-holder.js
```## Use unpkg
```
https://unpkg.com/[email protected]
```## Install using bower
```shell
bower install place-holder.js
```###Information for the place-holder.js
```shell
bower info place-holder.js
```### Example
```html
Index
```
## Contribute>Feel free to contribute
## License
>Copyright (c) 2016 Ankit Jain - Released under the MIT License