請參閱下面我的代碼:jQuery的發現列類
<div class="grid_6 box a col1 row1" style="left: 231px; top: 380px; position: absolute; "></div>
<div class="grid_6 box a col2 row1" style="left: 471px; top: 380px; position: absolute; "></div>
<div class="grid_6 box a col3 row1" style="left: 711px; top: 380px; position: absolute; "></div>
<div class="grid_6 box a col4 row1" style="left: 951px; top: 380px; position: absolute; "></div>
<div class="grid_6 box b col1 row2" style="left: 231px; top: 540px; position: absolute; "></div>
<div class="grid_6 box b col2 row2" style="left: 471px; top: 540px; position: absolute; "></div>
<div class="grid_6 box b col3 row2" style="left: 711px; top: 540px; position: absolute; "></div>
<div class="grid_6 box b col4 row2" style="left: 951px; top: 540px; position: absolute; "></div>
我需要做一個jQuery腳本將找出哪些山口和行我已經點擊。
這可以輕鬆完成嗎?
鑑於什麼?當你點擊一個特定的單元格時? – ptrn 2012-07-17 22:46:07
對不起,應該提到這一點。 – 2012-07-17 22:46:30
然後只要檢查div有什麼樣的類,然後查找col *和row *,那會得到你想要的。 – TheZ 2012-07-17 22:49:12