.class Selector

Syntax

$(".class")

Description

.class selector is used to select all the form elements with the same class name. The below example explains how to select all the elements with same class name and change their style.

Example Code

Result:

Name
Address


Ask Questions

Ask Question