I have a anchor tag
<a class="bx-prev" href="">Prev</a>
Now I want replace text "Prev" with
<i class="fa fa-arrow-right" aria-hidden="true"></i>
How to do it in jquery?
I have a anchor tag
<a class="bx-prev" href="">Prev</a>
Now I want replace text "Prev" with
<i class="fa fa-arrow-right" aria-hidden="true"></i>
How to do it in jquery?
use this script, it'll work surely;
<a class="bx-prev" href="">Prev</a>
$(document).ready(function(){
$('.bx-prev').click(function(){
$('.bx-prev').html('<i class="fa fa-arrow-right" aria-hidden="true"></i>');
return false;
});
});