locked
How to use Jquery inside userControls RRS feed

  • Question

  • User-909867351 posted

    Hi 

    I need to use this datetimepicker inside one usercontrol. 

    How cab I use it?

    It does not work in the following way

    <%--date tiume--%>
    <link rel="stylesheet" type="text/css" href="datetimepicker-master/jquery.datetimepicker.css"/ >
    <script src="datetimepicker-master/jquery.js"></script>
    <script src="datetimepicker-master/build/jquery.datetimepicker.full.min.js"></script>
    
    <%--fim do date time--%>
    <asp:TextBox ID="datetimepicker" runat="server"></asp:TextBox>
    <script>
        jQuery('#novocliente$datetimepicker').datetimepicker();
    </script>

    I got the #novocliente$datetimepicker watching the sorce code of the page

    Any help?

    Thank you

    Sunday, December 23, 2018 11:03 AM

Answers

  • User61956409 posted

    Hi Mario,

    As you did, we can use F12 developer tools to select&check the actual id property of the control rendered in browser. According to your description, the control might be rendered like below.

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 24, 2018 2:26 AM

All replies

  • User-909867351 posted

    works

    I got the name instead of the id. Sorry for that

    Sunday, December 23, 2018 11:05 AM
  • User61956409 posted

    Hi Mario,

    As you did, we can use F12 developer tools to select&check the actual id property of the control rendered in browser. According to your description, the control might be rendered like below.

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 24, 2018 2:26 AM