我有一些文本域,我想检查它们是否有文本。jquery - 检查文本域中是否有文本
<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");
}
这样做的窍门!非常感谢。 – RedHawkDK