October 25, 201213 yr Hi There I want to make Watermark textbox with pure CSS3 (With-out javascript - jquery) like this http://jsfiddle.net/qGvAf/ Help me please. Thank You
October 27, 201213 yr You can do it with place holder but that is not cross browser supported. Better use javascript. is there any issue to use javascript'?
October 27, 201213 yr You can do it with place holder but that is not cross browser supported. Better use javascript. is there any issue to use javascript'? Placeholder is the way to go because it's forward-compatible. Polyfill for older browsers with Javascript.
October 27, 201213 yr Polyfill for older browsers with Javascript. And by "older browsers", I mean IE which we're likely polyfilling other things for anyway. Edited October 27, 201213 yr by Renaissance-Design
October 31, 201213 yr hey aryan, javascript is the best way to get what u want in this case , PlaceHolder is not Supported in All browsers
November 1, 201213 yr No - don't use just jQuery/Javascrpt. Use the placeholder attribute, and use a polyfill for older browsers. Why? Because this way, you're using the modern method for browsers that support it, which is better because the site will run faster, be more efficient, and be more up to date. Yet, at the same time, for older browsers you still get the same functionality by using the script. Seriously, in instances like this you should be using a polyfill. Just using Javascript because browser support isn't 100% is merely a sign of being a lazy developer.
November 1, 201213 yr well an "one-line" javascript code doesn't make any difference in speed and u give the audience what they want
Create an account or sign in to comment