ginader / HTML5-placeholder-polyfill

Small and robust polyfill for the HTML5 placeholder attribut.
GNU General Public License v2.0
223 stars 85 forks source link

handle the programatic setting of the values #9

Closed ginader closed 12 years ago

ginader commented 12 years ago

good comment by Alexander Farkas mentions the handling of setting the value using jQuery's: $.val, $.prop(‘value’) and (optional as deprecated) $.attr(‘value’).

Todo: update the placeholder state when the input value is updated programmatically

ginader commented 12 years ago

use jQuery hooks to solve this: http://blog.rodneyrehm.de/archives/11-jQuery-Hooks.html