對於HTML如何獲得警報按鈕時,點擊裏面的div具體 - Jquery的
<div class='abc'>
<button type="button">A</button>
<button type="button">B</button>
<button type="button">C</button>
<button type="button">D</button>
</div>
<button type="button">X</button>
<button type="button">Y</button>
<button type="button">Z</button>
我希望當有類名abc
格按下按鈕中的任何一個提醒。
假設有人點擊A或B,應該會出現提示。
'的jQuery( 'ABC鍵')點擊(...)' –
爲什麼否決票給出? – user3636511
+1現在快樂..? –