JavaScript/JQuery Notation for getting client ID in .NET


Here is how you would use JQuery selector and get an ID from a control in .NET/ASP.NET

 

                   <script>
                        $(function () {
                            $('#<%= txtBox_ShippingDate.ClientID%>').datepicker();
                        });
                    </script>
                    Shipment Date: 
                    <br />
                    <asp:TextBox ID="txtBox_ShippingDate" runat="server" Width="180px"></asp:TextBox>
Tags: clientID
Last update:
2015-01-19 22:17
Author:
Mark
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.