Does a jQuery selector by id always work without quotes and # sign?
- by anarinsky
I suddenly found that while using Mozilla / jQuery v1.8.2 I do not need to use the id with quotes and # sign. For example, $(bt2) works the same as $(“#bt2”), see the code below.
Will this selector always work and are there any potential drawbacks from using this shorter form of selection?
<html>
<head>
…