marcgg / Simple-Placeholder

A simple polyfill for mimicking the HTML5 placeholder attribute using jQuery
61 stars 88 forks source link

Check if field is empty before setting value, also set placeholder_class on init #3

Closed dazhall closed 13 years ago

dazhall commented 13 years ago

Added if statement to make sure field is empty before setting value to placeholder. Also added placeholder_class to field on init.