My Code
I have this html
<a href="#">
<i>[please keep this]</i>
Some Text To Update
</a>
And this jQuery
$('a').click(function(){
$(this).text('Updated Text');
return false;
});
Problem
When the link is clicked I am getting:
<a href="#">Updated Text</a>
Desired Result
I want to preserve the <i> element and get this:
<a href="#"><i>[please keep this]</i> Updated Text</a>
The HTML cannot be modified