$(function() { // For every input element with the placeholder attribute, do jQuery Placeholder $('input[placeholder]').placeholder(); });