I am using placeholders for input boxes in my application and a jquery workaround for browsers that do not support placeholders. However in most browsers the placeholder disappears when the input is in focus even though it is empty. One workaround is to use a transparent bg on the input field and put a span with the text directly behind the input field and change the bg to opaque once something has been typed in. The problem is that my application now has over 3000 input fields. Is this possible to do this via a jquery plugin in run time? or I am open to a better suggestion. Please help.
I am using placeholders for input boxes in my application and a jquery workaround
Share
This is what i wrote and am using: