I have next html:
<label for="user_name">
<abbr title="required">*</abbr>
Name
</label>
And I want to change label caption to Title
with jquery. So I do
$('label[for=user_name]').html('Title')
And it replaces all inner html (including abbr
tag)
So, what's the easiest way to replace only Name
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…