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: 418 | Points: 40
Answer:

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");
</script>


Asked In: While Learning | Alert Moderator 

Comments or Responses

Login to post response