Datepicker (Bootstrap) works with Online but not Offline libs

0

I developed an application that uses 3 libraries jquery-1.11.1.min.js, bootstrap.min.js, bootstrap-datepicker.js, this application works using the libraries purchased online (src="htt: //") but when I add the reference to these same libraries that I have on the pc the datepicker does not work (I already checked the directories) OBS: they are the same versions

html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>      
    <link rel="stylesheet" type="text/css" href="../CSS/StyleSheet.css"/>

    <link rel="stylesheet" type="text/css" href="../Bootstrap/css/bootstrap.css" media="screen" />

    <script src="../FullPage/vendors/jquery.easings.min.js"></script>
    <script type="text/javascript" src="../FullPage/jquery.fullPage.js"></script>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
</head>
<body>
    <div class="panel panel-default col-md-8 col-md-offset-2">
        <div class="panel-heading">
            <h3 class="panel-title span7 text-center"><span class="title">Create Account</span></h3>
        </div>
        <div class="panel-body">
            <form class="form-horizontal">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="input_email" class="control-label col-md-3">Your Email (login)</label>
                        <div class="col-md-9">
                            <input type="email" class="form-control" id="input_email" placeholder="Email">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="input_password" class="control-label col-md-3">Password</label>
                        <div class="col-md-9">
                            <input type="password" class="form-control" id="input_password" placeholder="Password">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="input_date" class="control-label col-md-3">Birthdate</label>
                        <div class="col-md-9 input-group date">
                            <input type="text" class="form-control" id="input_date"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
                        </div>
                    </div>
                </div>
                <div class="form-group text-center">
                    <div class="col-md-6 col-md-offset-3">
                        <button type="reset" class="btn btn-danger">Reset</button>
                        <button type="submit" class="btn btn-primary">Create Account</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="panel-footer span7 text-center"><a href="#">Back to Site</a></div>
    </div>

    <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script><scriptsrc="//netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/js/bootstrap-datepicker.js"></script><!--<scripttype="text/javascript" src="../Bootstrap/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="../Bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../datepicker/js/bootstrap-datepicker.js"></script>-->
    <script>
        $('.input-group.date').datepicker({
            format: "yyyy/mm/dd",
            startDate: "2012-01-01",
            endDate: "2015-01-01",
            todayBtn: "linked",
            autoclose: true,
            todayHighlight: true
        });
    </script>   
</body>

    
asked by anonymous 27.12.2014 / 12:44

1 answer

0

You have to put the javascript libraries: Jquery, bootstrap and datepicker (in the same order) in the head tag, and change the relative addresses to the address localhost /.../.../jquery (in my project it worked this way )

    
27.12.2014 / 14:16