Using JQuery to change 'src' attribute for icon's image
-
Hi,guys. I’m a web developer from Colombia.
I would like to know how to change dynamically using JQuery, the ‘src’ attribute when an user clicks on navigation icons created with the ‘Menu Icons’ plugin, this is the HTML code for a current item when I use the code inspector on my browser:
<li id=”menu-item-60″ class=”menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-60″><img width=”18″ height=”17″ src=”https://gonzalezreyabogados.com/wp-content/uploads/2014/10/btn_menu_inicio_desactivado.png” class=”_mi _before” alt=”btn_menu_inicio_desactivado”><span>INICIO</span>I thank you so much for your fast help.
- The topic ‘Using JQuery to change 'src' attribute for icon's image’ is closed to new replies.