我有一些文本域,我想檢查它們是否有文本。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