給出一系列的DIV W /唯一ID爲:組輸入值
<div id="2988">
<div class="site">YaHoot.com</div>
<div class="logo">/images/yahootLogo.jpg</div>
//[and so on]
<input type="button" value="YaHoot" onclick="javascript:processMe('2988');" />
</div>
//[followed by bunches more divs repeating that structure]
我想編寫一個單擊處理程序可以與內容映射表單的隱藏字段的每個兒童DIV。
換句話說,該形式具有一個隱藏字段:
<input type="hidden" name="logo">
應與/images/yahootLogo.jpg被點擊給定按鈕時受到重視。
THX