Arrange a Masterclass

jQuery placeholder plugin/polyfill

Written by on CSS Wizardry.

N.B. All code can now be licensed under the permissive MIT license. Read more about licensing CSS Wizardry code samples

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!

N.B. All code can now be licensed under the permissive MIT license. Read more about licensing CSS Wizardry code samples




By Harry Roberts

Harry Roberts is an independent consultant web performance engineer. He helps companies of all shapes and sizes find and fix site speed issues.


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.

You can now find me on Mastodon.


Suffering? Fix It Fast!

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.