I have been attempting to disable the Bootstrap Date picker by using the attribute disable="true". The text-box is now disabled, but the date picker still opens when clicking on the text-box. How can I resolve this issue?
HTML
<div class="input-group" id="DateDemo">
<input type="text" id="txtPatientDOB" name="dd" data-format="MM/DD/YYYY" placeholder="DOB" class="form-control" disabled="disabled" /> <span class="input-group-btn">
<button class="btn btn-green" type="button"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>
JS
$("#txtPatientDOB").attr("disabled", true);