jQuery equivalent to “getElementsByName”

后端 未结 5 671
一生所求
一生所求 2020-12-25 14:07

What is the correct jquery syntax for a getElementsByName call?

Here is my javascript code:

var test = document.getElementsByName(tableN         


        
5条回答
  •  灰色年华
    2020-12-25 14:59

    Interesting to know that jquery is a LOT slower than the native method here. See the jsPrefs test : http://jsperf.com/getelementsbyname-vs-jquery-selektor/4

提交回复
热议问题