<div class="panel panel-default ">
<div class="panel-body">
This Add-on requires access to your Jive Community.
<span class="nav navbar-nav navbar-right"><a href="#" class="btn btn-default btn-sm active" role="button" label="Grant access" >Access Granted </a></span>
</div>
</div>
<div class="panel panel-default">
<div class="panel-body">
This Add-on requires access to Salesforce.com
<span class="nav navbar-nav navbar-right"><a href="#" class="btn btn-default btn-sm active" role="button">Access Granted</a></span>
</div>
</div>
我想在上面的html代码中将“授予访问权限”更改为“授予访问权限”。 如果有人可以帮助我,这将是太棒了。 (我正在使用bootstap css)
答案 0 :(得分:0)
<body>
<a href=""></a>
<!-- to this <a href="http://www.jquery.com">jQuery.</a> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
></script>
jQuery(document).ready(function(submit) {
$('#check').click(function (e) {
jQuery('a').text('Grant Access').text();
});
});
<script>
</body>
你可以使用onclick和onload设置它。尝试这个