-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.me
40 lines (30 loc) · 878 Bytes
/
readme.me
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#Get element content On Hover Link
simple code to get element content On Hover Link
<ol class="commentlist">
<li><a href="#t1">some text herer</a></li>
<li><a href="#t2">some text herer</a></li>
<li><a href="#t3">some text herer</a></li>
<li><a href="#t4">some text herer</a></li>
<ol>
<a id="t1"></a>
<div class="crs">
some text herer some text herer
</div>
<a id="t2"></a>
<div class="crs">
some text herer some text herer
</div>
<a id="t3"></a>
<div class="crs">
some text herer some text herer
</div>
<a id="t4"></a>
<div class="crs">
some text herer some text herer
</div>
demo:
https://anasedreesi.github.io/getDivOnHoverLink/
using:
1- add the script to your project
2- change the line in the script file as your element selection query ( $('#cntnt div').html('<table class="crsDesc">' + $('#dContent #t' + hrf).next().html() + '</table>');)
thats all ;)