2.2.4 • Published 8 years ago

place-holder.js v2.2.4

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Codacy Badge npm version npm

#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, Microsoft

Downloading 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):

<script type="text/javascript" src="jquery-3.0.0.min.js"></script>

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

<script type="text/javascript" src="place-holder.min.js"></script>

Note: Place the downloaded file in the same directory as the pages where you wish to use it.

##Install using npm

npm install place-holder.js

##Use unpkg

https://unpkg.com/place-holder.js@2.2.4

##Install using bower

bower install place-holder.js

###Information for the place-holder.js

bower info place-holder.js

###Example

	<!DOCTYPE html>
	<html>
		<head>
			<title>Index</title>
		</head>
		<body>
			<form>
				<input type="text" name="name">
				<input type="email" name="email">
				<input  name="mobile">
				<input type="submit">
				<textarea></textarea>
			</form>
		</body>
		<script type="text/javascript" src="jquery-3.0.0.min.js"></script>
			<script type="text/javascript" src="place-holder.min.js"></script>
	</html>

##Contribute

Feel free to contribute

##License

Copyright (c) 2016 Ankit Jain - Released under the MIT License

2.2.4

8 years ago

2.2.2

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago

2.1.8

8 years ago

2.1.6

8 years ago

2.1.5

8 years ago

2.1.4

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago