jQuery Syntax

In the previous lesson, we learned how to run jQuery on local machine to begin working in Windows. Here, we will see how to start with jQuery by learning about its syntax. While working with jQuery, you can use all the functions of JavaScript. Let’s learn about jQuery syntax.

Here’s the syntax,

jQuery uses a document ready event, which we will learn in the upcoming lessons also,

The above function prevents the code from running before the document is ready.

Now, you can also use the $() to write the above code. The meaning and purpose of the code remain the same,

The syntax used inside the document ready event,


  • $ = Sign denotes jQuery function to define jQuery
  • selector = To select HTML elements
  • actions = To perform an action on select element

We will be using the following syntax,

Let’s see an example to run jQuery on the local system:


jQuery Syntax First Program

How to run jQuery on local machine
jQuery Selectors
Studyopedia Editorial Staff
[email protected]

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading