When you select something with jQuery, jQuery puts it in an array. so
el is an array, and
tabs is an array. And you can perform jQuery things on this array.
So how do we select an element in a jQuery way? There’s a couple ways. You can do something like
Or you can just use the .eq() property.
tabs.eq(0) This is like
get() which you used, but it keeps the selected element in jQuery.
I hope this helps.