What do we mean by #id Selector?

 Posted by vishalneeraj-24503 on 6/9/2014 | Category: jQuery Interview questions | Views: 1663 | Points: 40

The jQuery #id selector is nothing but a controlID which uses the id attribute of an HTML tag to find the specific control.It must be unique on a page.
We have to use # sign followd by ControlID yo find control usng jQuery.

For Example:-
<asp:Button ID="btnDelete" runat="server" Text="Delete"/>

<asp:Button ID="btnSave" runat="server" Text="Save"/>


Here,on clicking of save button,Delete button will be hidden.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response