I have multiple divs on the site! for example
<div id='id_111232'>Some text</div>
<div id='id_111233'>Some text</div>
<div id='id_111234'>Some text</div>
<div id='id_111235'>Some text</div>
And i want to create a javascript that is appending in to this div like this
<a href='http://something.com/some/xx'></a>
where xx is the value of the above mentioned divs so i mean: id_value
How could I do this?
Try this – http://jsfiddle.net/9DAd7/2
Or even easier with jQuery – http://jsfiddle.net/9DAd7/3/