Suppose I use the jQuery "placeholder" plugin, which reads the "placeholder" attribute from input elements and simulates it for browsers that do not yet support placeholders.
But I would like $ ("input"). val () worked correctly, that is, return "" if the text in the text field is placeholder text. Anyway, can I override .val () only for these inputs?
javascript jquery
Chung wu
source share