嗨,我是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