I am trying to replace all font awesome icon within a certain div.
Here is my code:
$( '#icons' ).find( '.fa' ).each( function() {
if( $( this ).hasClass( 'fa-adjust' ) ){
$( this ).attr( 'class' , 'fa fa-circle' );
} else if( $( this ).hasClass( 'fa-circle' ) ){
$( this ).attr( 'class' , 'fa fa-adjust' );
}
});
What I would like to do is swap fa-adjust with fa-circle within the div icons.
icons... does this matter?