jq 获取文本框焦点  和 当文本框失去焦点时


<
input type="text" value="请输入照片标签" onfocus="theforever_csdn1(this);" onblur="theforever_csdn2(this);"> <input type="text" value="请输入照片标签" onfocus="theforever_csdn1(this);" onblur="theforever_csdn2(this);"> <input type="text" value="请输入照片标签" onfocus="theforever_csdn1(this);" onblur="theforever_csdn2(this);"> <input type="text" value="请输入照片标签" onfocus="theforever_csdn1(this);" onblur="theforever_csdn2(this);"> <script type="text/javascript">
function
theforever_csdn1(obj)
{
   obj.oldVal
=obj.value;
   obj.value
="";
}
function theforever_csdn2(obj)
{
   obj.value
=obj.oldVal;
}
</script>