5
我有一種情況,我想根據事件定位某些元素。例如:如何使用jQuery爲一個事件排序元素
<div id="leftBox">
<div class="green">GREEN</div>
<div class="blue">BLUE</div>
<div class="red">RED</div>
</div>
<div id="rightBox">
<div class="green">GREEN</div>
<div class="blue">BLUE</div>
<div class="red">RED</div>
<div class="green">GREEN</div>
<div class="blue">BLUE</div>
<div class="red">RED</div>
<div class="green">GREEN</div>
<div class="blue">BLUE</div>
<div class="red">RED</div>
</div>
當我鼠標移到#leftBox。綠色,我想在的#rightbox所有元素用。綠色在上面,如:
<div id="rightBox">
<div class="green">GREEN</div>
<div class="green">GREEN</div>
<div class="green">GREEN</div>
<div class="blue">BLUE</div>
<div class="red">RED</div>
<div class="blue">BLUE</div>
<div class="red">RED</div>
<div class="blue">BLUE</div>
<div class="red">RED</div>
</div>
和喜歡同樣的爲的.blue和.red
我嘗試了一些。請檢查它,朋友。 – thecodeparadox 2011-06-11 06:23:08
朋友,如果這個解決方案適合你,你應該把它當作答案。 – thecodeparadox 2011-06-11 06:44:28