Both the $()
and jquery()
have the same functionality(most of the things says that $()
is shorthand for jquery()
) as per my knowledge.
So why there is need to have the two methods for doing the same task?And why was there need to have shorthand for jquery()
as its not too long(no need to press shift + $).
If they are different than in what sense they are?
And which is more effective either $()
or jquery()
?
Using $()
:DEMO
$( "div" );
Using jQuery()
:DEMO
jQuery( "div" );