What function we must use to select a particular element having a specific class
and how do we define it ?

 Posted by Vivek.Ramapuram on 9/4/2014 | Category: jQuery Interview questions | Views: 1591 | Points: 40

class selector is used to select an element with a specific class
We need to use / we define it by the class name with “.” (dot) ex- (.class)
for example :
<script language="javascript" type="text/javascript">

$(".class").css("border", "2px solid brown");

Asked In: While Learning | Alert Moderator 

Comments or Responses

Login to post response