我得到了一個表格,每個表格中都有字段。如果字段是空的,我希望特定的行上有紅色邊框。如何在表格中添加行邊框
<table cellpadding="3" cellspacing="5" >
<tr>
<td class="cellformatting"><label>first name*</label></td>
<td class="cellformatting"><input id="fname" type="text" class="required searchfields" />
</td>
</tr>
<tr>
<td class="cellformatting"><label>last name*</label></td>
<td class="cellformatting"><input id="lname" type="text" class="searchfields" /></td>
</tr>
</table>
我想要腳本,如果假設姓氏是空的,它應該添加一些css圍繞特定行的表中姓氏顯示。
我還想睡,但可以行有一個邊界?我認爲只有'td's可以有邊界... **編輯**:nm,我想我很笨。繼續。 – 2012-03-15 11:21:36
@XyanEwing我很對多數民衆贊成在我想問什麼 – 2012-03-16 12:49:12