How can I select all elements with the same class name?

后端 未结 4 2085
我在风中等你
我在风中等你 2021-01-07 10:30

I have a Boolean variable. It is stored in a hidden input field. Basically, if the user is signed in, it is false, if not, it is true.

Ther

4条回答
  •  长情又很酷
    2021-01-07 11:09

    document.getElementsByClassName returns array so what you are interested is :

    document.getElementsByClassName('project_download_btn')[0]
    

提交回复
热议问题