marcgg / Simple-Placeholder

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

Incorrect usage example #1

Closed dazhall closed 13 years ago

dazhall commented 13 years ago

The correct textarea usage is:

$('textarea[placeholder]').simplePlaceholder();

not

$('textarea:text[placeholder]').simplePlaceholder();

The :text selector is just for input[type=text]. http://api.jquery.com/text-selector/

;)

marcgg commented 13 years ago

Fixed, thanks ^^