Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

what is $ in jquery

$ is the shortcut for jQuery and acts as a selector. Similar to querySelector
$('#id')
$('.class')
$(this)
Comment

why we use $ in jquery

$ 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.
Comment

PREVIOUS NEXT
Code Example
Javascript :: if or react 
Javascript :: mean stack tutorial 
Javascript :: convert celsius to fahrenheit javascript 
Javascript :: react Spread Attributes conditionally 
Javascript :: byte number to array js 
Javascript :: javascript string add new line 
Javascript :: regex look behind 
Javascript :: upload file to database with axios and formData 
Javascript :: capitalize first letter in array of strings javascript 
Javascript :: call a self executing function javascript 
Javascript :: jquery a tag click 
Javascript :: js append zeros 
Javascript :: get previous link javascript 
Javascript :: export aab bundle react native android 
Javascript :: how to import in react js 
Javascript :: hoisting in javscript 
Javascript :: angular ng class with animation 
Javascript :: how to create an array in javascript 
Javascript :: express controller 
Javascript :: how to check for unused dependencies in my react project 
Javascript :: socket emit to 
Javascript :: javascript unshift 
Javascript :: javascript equality 
Javascript :: jquery ajax send custom data after serialize 
Javascript :: npm react-syntax-highlighter 
Javascript :: sort numbers in array javascript 
Javascript :: ENOENT, no such file or directory 
Javascript :: object promise javascript 
Javascript :: which line will generate a random number between 1 to 10 javascript 
Javascript :: Make Floating label TextInput in react native 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =