我有验证摘要,有时br
末尾有多个标签,如下所示:
<div id="ValidationSummary1" class="alert alert-error">
Last 4-digits of Social Security number does not match
the Member record on file for the Member ID number you
have entered.<br />
Date of Birth does not match the Member record on file for the Member ID
number you have entered.<br /><br />
</div>
我试图在任何时候找到两个br
背靠背标签并将其替换为如下所示:
$('#ValidationSummary1').replace('<br /><br />', '<br />');
我知道没有replace()
功能。像这样简单的东西有什么替代品?