这是html:
<div class="upme-field-value">
<div class="upme-rememberme">
<i class="upme-icon-check-empty"></i>Remember me
<input type="hidden" name="rememberme" id="rememberme-1" value="0">
</div>
<input type="submit" name="upme-login" class="upme-button upme-login" value="Log In">
<br>
<a href="javascript:void(0);" id="upme-forgot-pass-1" class="upme-login-forgot-link "
title="Forget?">Forget?</a>
| <-------- **** I want to remove this character****
<a href="/register/" class="upme-login-register-link
">Register</a>
</div>
是否有办法删除此字符“ |”从上面的HTML与jQuery或CSS?
最佳答案
这将解决此问题
$('div.upme-field-value').html($('div.upme-field-value').html().replace('|',''))