我有以下表结构:
<tr>
<th><label for="ctl00_bodyContent_username">username:</label></th>
<td class="field"><input name="ctl00$bodyContent$username" type="text" id="ctl00_bodyContent_username" /></td>
<td class="info">
<div class="message">what do you want to be known as?</div>
<div class="valid">username available</div>
<div class="invalid">this username is already taken</div>
</td>
</tr>
我想要实现的是当文本框#ctl00_bodyContent_username 具有焦点时,相邻表格单元格中会显示 te div .message(默认为 display:none)。