我有我的代碼一些意見,這樣的:JS,評論之間標明內容
<!-- DebugDataTemplateBegin {"template":"one"} -->
<div class="row notices" id="admin">
comment One content
</div>
<!-- DebugDataTemplateEnd {"template":"one"} -->
<!-- DebugDataTemplateBegin {"template":"two"} -->
<div class="row notices" id="admin">
comment Two content
</div>
<!-- DebugDataTemplateEnd {"template":"two"} -->
,我有錨這樣的:
<a href="#"> one </a> <br/>
<a href="#"> two </a>
這些鏈接的內容對應的評論「模板'元素,我想要實現的是當用戶將鼠標懸停在任何這些鏈接上時,它的對應內容(評論之間)將突出顯示。
我開始了一個簡單的jsfiddle例子http://jsfiddle.net/Banzay/md79aaby/,但不知道這是否可能。
對不起,如果我沒有解釋得很好。
Youssef
所以基本上你希望能夠選擇在jQuery的意見? http://stackoverflow.com/questions/1623734/selecting-html-comments-with-jquery – 2014-09-03 14:45:05