代码:
if(window.getElementById("").value=="")//空的地方为你的textarea对象的ID
{
alert("请输入详细介绍!");
return false;//使提交失效
}