【发布时间】:2014-02-05 09:24:29
【问题描述】:
我有一些文本字段,我想检查其中是否有文本。
<input type="text" class="inputField" id="a113" name="grp113">cm</div>
您能帮我找出以下代码中的错误吗? :)
if ($(this).find('input[type="text"]').length > 0)
{
alert("there is text in the field");
}
else
{
alert("there is no text in the field");
}
【问题讨论】: