We're a place where coders share, stay up-to-date and grow their careers.
Whenever I did jQuery code, I wouldn't understand why my code didn't execute. turns out I would forget the period in the selector... $('dropdown').show()
$('dropdown').show()
I have the opposite! Now I have to kick myself every time I write document.getElementByID('#some-id'). 😅
document.getElementByID('#some-id')
I'm forever missing out the dot for a class so made a snippet that does it for me
Whenever I did jQuery code, I wouldn't understand why my code didn't execute. turns out I would forget the period in the selector...
$('dropdown').show()
I have the opposite! Now I have to kick myself every time I write
document.getElementByID('#some-id')
. 😅I'm forever missing out the dot for a class so made a snippet that does it for me