angularjs - Angular Bootstrap DateTimePicker - How to force a user to select from dropdown by disabling the inputs for that field -


right code, able select date & time drop-down , able edit taking inputs user.

but want force user select dropdown rather entering inputs in specific field.

here code used date , time picker drop down if see ui want user select drop down. don't want user give own inputs

1

2

any appreciated...

angular.module("app",['ui.bootstrap.datetimepicker'])
<link href="//unpkg.com/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />  <link href="//unpkg.com/angular-bootstrap-datetimepicker/src/css/datetimepicker.css" rel="stylesheet" />  <script src="//unpkg.com/jquery"></script>  <script src="//unpkg.com/moment/moment.js"></script>  <script src="//unpkg.com/bootstrap/dist/js/bootstrap.js"></script>  <script src="//unpkg.com/angular/angular.js"></script>  <script src="//unpkg.com/angular-bootstrap-datetimepicker/src/js/datetimepicker.js"></script>  <script src="//unpkg.com/angular-bootstrap-datetimepicker/src/js/datetimepicker.templates.js"></script>    <body ng-app="app">    <h3>datepicker demo</h3>    <p>selected date: {{data.date | date : 'medium'}}</p>    <button class="dropdown dropdown1-parent">      <a class="dropdown-toggle" id="dropdown1"          role="button" data-toggle="dropdown"          data-target=".dropdown1-parent" href="#">          pick date&nbsp;<i class="glyphicon glyphicon-calendar"></i>      </a>      <ul class="dropdown-menu" role="menu" aria-labelledby="dlabel">          <datetimepicker data-ng-model="data.date"              data-datetimepicker-config="{ dropdownselector: '.dropdown-toggle' }">          </datetimepicker>      </ul>    </button>  </body>


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -