“Cara Menambahkan DatePicker di Bootstrap (Formulir HTML)” Kode Jawaban

Cara Menambahkan DatePicker di Bootstrap (Formulir HTML)

<div class='container' style='margin-top: 100px;'>
 <input type='text' class="form-control" id='datepicker' style='width: 300px;' > <br>
 <input type='text' class="form-control" data-provide="datepicker" style='width: 300px;' >
</div>

<!-- Script -->
<script type="text/javascript">
$(document).ready(function(){
 $('#datepicker').datepicker(); 
});
</script>
Brainy Badger

Cara Menambahkan DatePicker di Bootstrap (Formulir HTML)

<link href="~/Content/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
Brainy Badger

Cara Menambahkan DatePicker di Bootstrap (Formulir HTML)

<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" ></script>

<!-- Datepicker -->
<link href='bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css' rel='stylesheet' type='text/css'>
<script src='bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js' type='text/javascript'></script>
Brainy Badger

Cara Menambahkan DatePicker di Bootstrap (Formulir HTML)

<script src="~/Scripts/bootstrap-datepicker.min.js"></script>
Brainy Badger

Jawaban yang mirip dengan “Cara Menambahkan DatePicker di Bootstrap (Formulir HTML)”

Pertanyaan yang mirip dengan “Cara Menambahkan DatePicker di Bootstrap (Formulir HTML)”

Lebih banyak jawaban terkait untuk “Cara Menambahkan DatePicker di Bootstrap (Formulir HTML)” di HTML

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya