<body>
<div id="scrollup">
<div class="link">
<br><a href="http://www.google.com/">Google1</a>
<br><a href="http://www.yahoo.com/">Yahoo</a>
</div>
<div class="link">
<br><a href="http://www.Microsoft.com/">Microsoft</a>
<br><a href="http://www.Apple.com/">Apple</a>
</div>
<div class="link">
<br><a href="http://www.cisco.com/">Cisco</a>
<br><a href="http://www.Dell.com/">Dell</a>
</div>
</div>
</body>
I want to use JQuery Append to add list of Hrefs into classes, i have list of hyperlinks stored in array and i want to append them in groups, code shows how do i want the hrefs to be defined
And please note that i do not know how many hyperlinks are there in the array and also the number of (class=”link”) depend on the number of hyperlinks by adding (e.g. 4 hrefs into each class)
How about this
Fiddle demo: http://jsfiddle.net/R2kTC/