How do I add a class to a given element?

前端 未结 25 2406
清酒与你
清酒与你 2020-11-21 11:34

I have an element that already has a class:

25条回答
  •  时光说笑
    2020-11-21 12:12

    In YUI, if you include yuidom, you can use

    YAHOO.util.Dom.addClass('div1','className');

    HTH

提交回复
热议问题