Total Page Preview:   000000000176

What is the $() function in the jQuery library?

$() function in the JQuery library

The $() function is used to access the properties of elements in the DOM (Document Object Model). $() is similar to javascript’s selector functions, but it is more powerful and has more options.
$() can be used to access attributes, classes, id, data-* attributes, and more.
Example - Suppose you want to change the colour of all the heading1 (h1) to green, then you can do this with the help of jQuery as -
 
 
 
 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments