- var img_1_value = document. getElementById(“F”).
- var img_2_value = document. getElementById(“4”).
- document. getElementById(“F”).
How do I change an image to SRC in HTML?
document. getElementById(“blaah”). src=”blaah”; You can use this syntax to change the value of any attribute of any element.
How do I change the source of an image in CSS?