Arrange a Masterclass

jQuery placeholder plugin/polyfill

Written by on CSS Wizardry.

Table of Contents

My good friend, ex-colleague and all round awesome dude Dan Bentley has made a great little jQuery placeholder plugin which polyfills older browsers that don’t support the new HTML5 form attribute placeholder.

Link: https://github.com/danbentley/placeholder

Now I’ll readily admit that Dan has done 99% of the work here, but it has been something of a joint project in that:

  • I actually made him build it cos he’s amazing at JS and I needed it.

  • I’ve added a tiny, tiny bit of CSS/UI behaviour.

There’s my 1%.

Anyway, follow the project on GitHub, follow Dan on Twitter and GitHub and let us know if you use it!





Hi there, I’m Harry Roberts. I am an award-winning Consultant Web Performance Engineer, designer, developer, writer, and speaker from the UK. I write, Tweet, speak, and share code about measuring and improving site-speed. You should hire me.


Suffering? Fix It Fast!


Connect


Projects

  • inuitcss
  • ITCSS – coming soon…
  • CSS Guidelines

Next Appearance

Learn:

I help teams achieve class-leading web performance, providing consultancy, guidance, and hands-on expertise.

I specialise in tackling complex, large-scale projects where speed, scalability, and reliability are critical to success.