javascript - By click on an icon it should change to another icon -


Click to change the icon to another icon

if I click on an icon If this is to be done after clicking "cat" then it should be changed to "rat"

Using mostly junkies.

Try it (jQuery code):

  $ (function () ($ ('. YourIconClass'). (Function () {$ ("# yourIconId"). ('Src', "img / picture1.jpg"); return false;});});  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -