Setting title attribute with Javascript function

后端 未结 3 1188
逝去的感伤
逝去的感伤 2021-01-04 09:12

I am trying to find, if I can pass a value on the title attribute of a label element using Javascript?

I have tried the following Javascrip

3条回答
  •  醉梦人生
    2021-01-04 09:33

    
    
    

    Should do the job. It first selects the label and then sets the attribute.

提交回复
热议问题