[removed] Rotate img on click

后端 未结 2 1586
轻奢々
轻奢々 2021-01-23 13:22

I\'m trying to make the img with the id image rotate using the onclick event handler to use the code in my function which grabs the image by ID assigns a variable name, then use

2条回答
  •  孤独总比滥情好
    2021-01-23 13:50

    try to use div with id as a selector:

    and var img = document.getElementById("image").getElementsByTagName('img');

    worth a try!

提交回复
热议问题