locked
js files placement RRS feed

  • Question

  • User-797751191 posted

    Hi

      Where Script tag should be written . What is the advantage of writing before form. What happens if it is written in Head tag

    <head id="Head1" runat="server">
        <title></title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'/>
    
        <link href="Css/custom.css" rel="stylesheet" type="text/css"/>
        <!-- bootstrap 3.0.2 -->
        <link href="Css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <form>
    <div>
    <!-- ./wrapper -->
            <!-- jQuery 2.0.2 -->
            <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
            <!-- Bootstrap -->
            <script src="js/bootstrap.min.js" type="text/javascript"></script>
    
            <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
            <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
            <script>
                $(function () {
                    $(".datepicker").datepicker(
                         {
                             dateFormat: 'dd-mm-yy',
                             maxDate: new Date
                         });
                });
            </script>
        </form>
    </div>
    </body>
    Thanks
    Wednesday, June 26, 2019 5:43 PM

All replies