<! -- Adjust the compatibility of placeholder versions earlier than IE 10 --> <! -- [If lt ie 10]> <SCRIPT> $ (function () {$ ("input [type! = 'Password'], textarea "). BIND ({"Focus": function () {var placeholderval = $ (this ). ATTR ("Placeholder"); var realval = $ (this ). val (); if ($. trim (realval) = placeholderval) {$ (this ). val ("") ;}}, "Blur": function () {var placeholderval = $ (this ). ATTR ("Placeholder"); var realval = $ (this ). val (); if ($. trim (realval) = "") {$ (this ). val (placeholderval) ;}}); $ ("input [type! = 'Password'], textarea "). each (function (I, n) {$ (this ). val ($ (this ). ATTR ("Placeholder") ;}; $ ("input [type = 'Password']"). BIND ({"Focus": function () {var placeholderval = $ (this ). ATTR ("Placeholder"); var realval = $ (this ). val (); if ($. trim (realval) = placeholderval) {var copy_this = $ (this ). clone (True, true); $ (copy_this ). ATTR ("type", "password"); $ (copy_this ). insertafter ($ (this); $ (this ). remove (); $ (copy_this ). val ("" ); $ (Copy_this ). focus () ;}, "Blur": function () {var placeholderval = $ (this ). ATTR ("Placeholder"); var realval = $ (this ). val (); if ($. trim (realval) = "") {var copy_this = $ (this ). clone (True, true); $ (copy_this ). ATTR ("type", "text"); $ (copy_this ). insertafter ($ (this); $ (this ). remove (); $ (copy_this ). val (placeholderval) ;}}); $ ("input [type = 'Password']"). each (function (I, n) {var placeholderval = $ (this ). ATTR ("placeholde R "); var copy_this = $ (this ). clone (True, true); $ (copy_this ). ATTR ("type", "text"); $ (copy_this ). insertafter ($ (this); $ (this ). remove (); $ (copy_this ). val (placeholderval) ;};}); </SCRIPT> <! [Endif] -->
Compatibility solutions for placeholder versions earlier than IE 10