Miguel.nz

Placeholder support for IE9

December 11, 2014

Is always good to remember that if you’re going to develop a website supporting IE9, then you need to display placeholders properly!. A dead-simple plugin to support this can be found here. To work this out simple add this on your header:

<!--[if IE 9]>
	<script src="js/jquery.placeholder.js" type="text/javascript"></script>
<![endif]-->

So you can just get the file from here and if you don’t know how to minify files simple use Minify Javascript. Then you can just append this onto your file jquery.placeholder.js file:

$(document).ready(function(){
	$('input, textarea').placeholder();
});