I was trying to wrap a Achor tag to the Email-id dynamically, I am facing issues below is my html code:
<tr>
<td id='label'>
email
</td>
<td>
<div>
[email protected]
</div>
</td>
</tr>
and jquery code which i am trying is wraping the Achor tag to the div :
$("tr td#label:contains('email')").next().each(function(){
$(this).wrapInner('<a href="mailto:'+$(this).text()+'">');
});
i what to wrap a Achor tag to Email-Id. how can i do this?