document.getElementById can't select more than one element

前端 未结 4 1211
暗喜
暗喜 2021-01-29 14:01

I\'m working on loading. I have div #loading which is visible. And more divs #message which are hidden. I have js function.

function lo         


        
4条回答
  •  盖世英雄少女心
    2021-01-29 14:35

    You need to use unique ID's for your DOM elements. Try modify your code like this:

    
    
    
    
    
    ...
    QWERTY
    123456

提交回复
热议问题