Function placeholder (EL) {function isplaceholder () {var textarea = document. createelement ("textarea"); Return "Placeholder" in textarea;} debugger; var $ El = $ (EL ); // If (isplaceholder () = false &&! ('Holder' in document. createelement ('textarea ') {$ ('textarea [placeholder]'). each (function () {var that = $ (this); text = That. ATTR ('holder'); If (that. val () = "") {That. val (text ). addclass ('placeholder ');} // After the cursor focus is obtained, the content in the input box is cleared that. focus (function () {if(cancel.html () = text) {cancel.html ("");} If (that. val () = text) {That. val (""). removeclass ('holder ');}}). blur (function () {// when the cursor focus leaves the input box, add the prompt content if (that. val () = "") {That. val (text ). addclass ('placeholder ') ;}}) }}</script/>
-->
Placeholder does not support IE8