I'm trying to change the icon-bar class to a new image when a click event happens
Jquery code:
	CSS code:
	html code:
	it doesn't work. Does anyone know how I can change an image when a click event happens ?
thank you in advance for your time.
					Jquery code:
Code:
	
	$('#icon_bar_image').click(function(){
       $(this).toggleClass('changeIconBar');  
       });
Code:
	
	img.changeIconBar {
background-image: url(../images/collapse_up.png) !important;
width: 50px !important;
height: 50px !important;
}
Code:
	
	<nav class="navbar navbar-inverse"> <div class="container-fluid background-nav"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-bar"> <img src="images/icon_bar_close.png" id="icon_bar_image" width="50" height="50"> </button>
thank you in advance for your time.
							
						
Comment