html - css - how to change image source by its id? -


does know how can control image source css?

i need able change image src css. have loop printing < img id=.. > tags, , every id different image. want able set source id style css area.

does know how this?

that not possible css. however, easy javascript:

 document.getelementbyid("idofimage").src = "sourceofimage"; 

Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -