What function for ID selector we must use to select an element in jquery .
and how do we define it ?

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

ID selector can be usedto select an element having a specific id,
We need to prefix the id with “#” (hash symbol).

For example :

<script language="javascript" type="text/javascript">

$("#p").css("border", "5px solid brown");
</script>


Asked In: While Learning | Alert Moderator 

Comments or Responses

Login to post response