why we use $ in jquery
$ is the shortcut for jQuery and acts as a selector. Similar to querySelector
$('#id')
$('.class')
$(this)
3
2
$ is alias to jquery by default. In the place of $ we can use Jquery by default. Jquery is almost simplying code of js this is too we can consider as simplification of code.
Thank you!
2
0
Are there any code examples left?
New code examples in category Javascript