I have an number of achor elements, how to loop through each and add a
tag ?
it’s like this,
<a id="fbutton" href="http://www.facebook.com" title="fb" name="fb[]">
<img alt="fb" src="/images/icons/fb.jpg">
</a>
why do i want to add a br tag, because this button is too close to another button with another array name
You could use .after()
Or just
$('a').after('<br>');if you don’t need to do extra logic in the each callback function.