嗨,我是jQuery的初学者。 我想制作特定类型的文本框,并且只想在这些文本框中检查它们是否使用jQuery为空。 像检查特定类型的所有文本框是否为空
>>> <br/><p> pv: <input type="text" id="PVID" name="PVID" width="48" height="48"></p>
>>> <br/><p> Date: <input type="text" name="Date"width="48" height="48"></p>
>>> <br/><p> Reason: <input type="text" name="Reason"width="48" height="48" ></p>
>>> <br/><p> Amount: <input type="text" name="Amount"width="48" height="48" ></p>
>>> 5000<input type="text[0]" name="5000" >
>>> 1000<input type="text[1]" name="1000">
>>> 500<input type="text[2]" name="500">
>>> 100<input type="text[3]" name="100">
我只是想,如果所有的文本[X]是空的,返回0,如果连它的一个一个充满返回1第j查询功能。
p.s.我正确地索引文本框?
感谢你提前很
'type =“text [0]”'这对我来说是新的,'name =“100”'不理想 – Satpal