How can I add/remove (toggle) an attribute only on keypress?

前端 未结 0 374
轻奢々
轻奢々 2020-12-18 04:47

I\'m trying to toggle a tabindex attribute on "enter." So far I\'m able to remove the attribute, but not set it.

Here\'s what I have:

    var         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题