2078 5

Web Technology20785 marksjQuery Selectors

How jQuery id selector can be used to select specific element? Write an example with jQuery that will hide a paragraph on clicking a button.

How jQuery id selector can be used to select specific element? Write an example with jQuery that will hide a paragraph on clicking a button. [5]

The jQuery id selector uses the id attribute of an HTML tag to find and select a specific element. Since the id of an element is unique within a page, the id selector is used to select one unique element. Syntax: - The (hash) character is written followed by the id of the HTML element. -

Up nextDiscuss about different JSON data types.