Detect if an element is visible (without using jQuery)

前端 未结 5 732
执笔经年
执笔经年 2021-02-07 11:20

I\'m trying to detect if an html element I gave an id is visible or not without using jquery.

The context:

In the forgotten user password page,

5条回答
  •  爱一瞬间的悲伤
    2021-02-07 11:44

    On general_Submit.Label button click call a function Callfun() and then disabled button

    " />
    
        function Callfun()
        {
         document.getElementById("general_Submit.Label").disabled = true;
        }
    

提交回复
热议问题