I am writing very basic html and wanted to select only one element using css selector. However, the query returns one element in an array. I can access my element by indexing the array with [0] but is there a way to modify the query to return my element only?
<input class='myInput' id='myId'>
Css Selector:
'input.myInput'
When used in Chrome dev console, I see:
[<input class='myInput' id='myId'>]
instead of:
<input class='myInput' id='myId'>