在下面的HTML中,如何使用jQuery
.empty
删除
<div class="password-link">
以及里面的一切
href link
,文本
Log in
以及
</a>
-以及闭幕式
</div>
?
我想用
jQuery('#lostpasswordform input#wp-submit').empty('password-link');
但我不能用正确的方式选择输入或表单。
<form name="lostpasswordform" id="lostpasswordform" action="http://localhost/~user/wp-core/wp-login.php?action=lostpassword" method="post">
<input type="hidden" name="redirect_to" value="">
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="">
// Remove this:
<div class="password-link"><a href="http://localhost/~user/wp-core/wp-login.php">Log in</a></div>
</p>
</form>