ProgrammerGuide.Net | Step by Step Programmer Guide

Explain Basic Syntax of jQuery? | jQuery Interview Question | jQuery Tutorial

jQuery syntax structure can be broken down in to four parts:-

  • All Jquery commands start with a “$” sign.
  • Followed by the selection of the HTML element. For example below is a simple image where we are selecting a HTML textbox by id “txt1”.
  • Then followed by the DOT (.) separator. This operator will separate the element and the action on the element.
  • Finally what action you want to perform on the HTML element. For instance in the below Jquery code we are setting the text value to “Hello JQuery’

Please click here for related products on Amazon!

Jayashee

Add comment

Want to Check Celebrities News?