In the HTML I have the following element:
HTML
<input id="userNameTxt" type="text" class="input" value='ABC>
And i am selecting it like this in jQuery:
APP.js
$(userNameTxt).val()
What is this selector selecting? (Like when I use $('.something') ->
it's selecting the Class
of the element or $('#something')
it's selecting the ID.)
It seems to be selecting the ID, but then is it similar to the #
selector? If so then when to use such selector?