kev*_*ham 2 html javascript jquery font-awesome
我有一个按钮 <button class="home-signup-button button-add" formnovalidate>Sign up</button>
单击此按钮,我想将文本从注册更改为字体真棒图标.<i class='fa fa-circle-o-notch fa-spin fa-3x fa-fw'></i>
.到目前为止我已经尝试过了
$(".home-signup-button.button-add").click(function(){
$(this).text("<i class='fa fa-circle-o-notch fa-spin fa-3x fa-fw'></i>");
});
Run Code Online (Sandbox Code Playgroud)
但是我得到一个错误Uncaught SyntaxError: missing ) after argument list
.如果我只是输入一些文本,如"正在连接..."而不是字体真棒它没有任何错误.