For example:-
<span class="file">
<img class="file-icon" src="/modules/file/icons/application-pdf.png">
<a href="http://phpmycodes.blogspot.in/search/label/jQuery">CA_Current_Clamps Catalog_EN.pdf</a>
</span>
Result:-
<span class="file">
<a href="http://phpmycodes.blogspot.in/search/label/jQuery">
<img class="file-icon" src="/modules/file/icons/application-pdf.png">
CA_Current_Clamps Catalog_EN.pdf</a>
</span>
Code:-
jQuery(function(){
jQuery('.downloads-userguide .item-list ul li').each(function(){
var href=jQuery(this).find('a').attr('href');
jQuery(this).find('img').wrap('<a href="'+href+'"></a>');
})
})
Sign up here with your email

ConversionConversion EmoticonEmoticon