getElementsByClassName vs. jquery

前端 未结 8 579
遇见更好的自我
遇见更好的自我 2021-01-04 12:09

If my original function was:

document.getElementsByClassName(\'blah\')[9].innerHTML = \'blah\';

...how would I change that so I get that sa

8条回答
  •  说谎
    说谎 (楼主)
    2021-01-04 12:39

    $('.blah')[9].innerHTML="BLAH";
    

    This should solve your problem

提交回复
热议问题