[英] How do I get first element rather than using [0] in jQuery?
I'm new to jQuery, apologies if this is a silly question.
When I use it find an element using the id, I know theres always one match and in order to access it I would use the index [0]. Is there a better way of doing this? For e.g.
var gridHeader = $("#grid_GridHeader")[0];