-
What is the correct syntax of jQuery?
-
- action().(selector)$
- (selector)$.action()
- action().$(selector)
- $(selector).action()
- None of these
Correct Option: D
The basic syntax of jQuery is $(selector).action(), $ sign defines access of jQuery, (selector) is HTML element, action() is for the jQuery action that is to be performed. E.g. $(“h1”).hide(), this will hide all the <h1> elements.