<input type="hidden" value="1" id="textarea">
<input type="hidden" name="textarea_old_value" id="textareaVal_old"> <textarea rows="" cols="" onfocus="del('textarea',this,'textareaVal_old');" onblur="del('textarea',this,'textareaVal_old');">请输入内容</textarea> <input type="text"> <script type="text/javascript">function del(s,d,a){var textareaVal = document.getElementById(s);var textareaVal_old = document.getElementById(a);if(textareaVal.value == 1){ textareaVal_old.value=d.value; textareaVal.value = 2; d.value = '';}else if(d.value.length < 1){ d.value = textareaVal_old.value; textareaVal.value = 1;}}</script>如过满意请采纳哈...
温馨提示:内容为网友见解,仅供参考