Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more: (untagged)
HTML
<button class="btn btn-default" data-toggle="tooltip" title="Like"><i class="fa fa-star-o"></i></button>
Posted
Comments
[no name] 27-Nov-15 2:42am    
please specify what you exactly want ? what have you did yet ?

1 solution

JavaScript
$("button").click(function(){
    $(this).find("i").removeClass("fa-star-o").addClass("fa-truck");
});

Or maybe you can toggle it:
JavaScript
$("button").click(function(){
    $(this).find("i").toggleClass("fa-truck");
});


-KR
 
Share this answer
 
Comments
Design5ud 27-Nov-15 3:59am    
thank u very much krunalRohit it's working..
Krunal Rohit 27-Nov-15 5:53am    
Glad I could help. :)

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900