如何通过单击 Bootstrap 3 中的“刷新”字形图标来重置输入字段?
现有 HTML:
<input type="email" placeholder="person@company.com" /><span class="fa fa-refresh"></span>
最佳答案
$('.fa.fa-refresh').click(function(){
$(this).prev().val('');
});
关于javascript - Bootstrap 3 - 使用 "Refresh"Glyphicon 重置文本输入字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43616604/