Html/[removed] Add Attribute to an HTML Control

前端 未结 5 554
悲哀的现实
悲哀的现实 2021-01-15 00:49

Need: Find a way to add a valid tag/attribute/property to a normal html control.

What I have is some javascript/jquery adding a click event to a link that will show

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-15 01:30

    The best way to do this kind of thing is to hide the text in another element and then toggle that element. Try something like this:

    
    
        
            clear test
            
            
        
        
            
    show it hello world

提交回复
热议问题