How to align datepicker icon appearing below the datepicker textbox properly?

Nevermore

I have a datepicker and I want the datepicker icon to appear just after the datepicker. However, the datepicker icon appears below the datepicker. I have attached a JSFiddle. Fiddle for datepicker

      $(document).ready(function() {
        $("#datepicker").datepicker({
          changeMonth: true,
          changeYear: true,
          yearRange: "-100:+0",
          showOn: 'button',
          buttonText: 'Show Date',
          buttonImageOnly: true,
          buttonImage: 'http://jqueryui.com/resources/demos/datepicker/images/calendar.gif',
          dateFormat: 'dd/mm/yy',
          maxDate: 0
        });
      });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.css">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>



<body>
  <form>
    <div class="row">
      <div class="form-group col-md-1">
        <label>DOB :</label>
      </div>
      <div class="form-group col-md-3">
        <input class="form-control" name="dob" value="" id="datepicker" type="text">
      </div>
    </div>
  </form>
</body>

I tried getting the datepicker button aligned to the textbox in many ways but failed. I have to get the datepicker button aligned to the textbox.

It works perfectly on JSFiddle. However, if you run it on Chrome. You will notice that datepicker button appears below the text box. How to align it to text-box?

Nevermore

Adding this to style did the job..

display: inline-block; 
vertical-align: middle; 
width: 90%; 
margin: 0 5px 0 0;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to move the icon of DatePicker>

From Dev

Datepicker icon does not appear next to input textbox

From Dev

How to set datepicker to textbox in fiddle?

From Dev

jQuery Datepicker icon showing below the input box instead of on the right

From Dev

jQuery Datepicker icon showing below the input box instead of on the right

From Dev

Jquery datepicker - How do we hide the text inside a datepicker textbox?

From Dev

How to autoclose and click icon datepicker bootstrap

From Dev

How to properly set up datepicker attached to a button

From Dev

textbox access for datepicker

From Dev

Validation in datePicker textbox

From Dev

Bootstrap datepicker icon

From Dev

WPF DatePicker Icon Size

From Dev

Jquery datepicker icon not working

From Dev

DatePicker onDataSet is not working properly

From Dev

Make datepicker appear below input

From Dev

How to set the today's date in datepicker textbox in angularjs

From Dev

how to set datepicker when clicked on both textbox and calendar button?

From Dev

How to read Date from textBox, having Jquery UI DatePicker

From Dev

How to set default date value as current date in a datepicker textbox?

From Dev

MVC Required Textbox with JQuery DatePicker

From Dev

Jquery Datepicker not updating textbox in IIS

From Dev

Implementing DatePicker / DatePickerFlyout on TextBox Tapped

From Dev

Making AngularStrap DatePicker Textbox Editable

From Dev

DatePicker view calendar from textbox

From Dev

Zebra datepicker icon not showing up

From Dev

Bootstrap Datepicker appearing at incorrect location in a modal

From Dev

jquery-ui datepicker not appearing on dynamic input

From Dev

Android Lollipop DatePicker not working properly

From Dev

JQuery datepicker not showing properly with css

Related Related

  1. 1

    How to move the icon of DatePicker>

  2. 2

    Datepicker icon does not appear next to input textbox

  3. 3

    How to set datepicker to textbox in fiddle?

  4. 4

    jQuery Datepicker icon showing below the input box instead of on the right

  5. 5

    jQuery Datepicker icon showing below the input box instead of on the right

  6. 6

    Jquery datepicker - How do we hide the text inside a datepicker textbox?

  7. 7

    How to autoclose and click icon datepicker bootstrap

  8. 8

    How to properly set up datepicker attached to a button

  9. 9

    textbox access for datepicker

  10. 10

    Validation in datePicker textbox

  11. 11

    Bootstrap datepicker icon

  12. 12

    WPF DatePicker Icon Size

  13. 13

    Jquery datepicker icon not working

  14. 14

    DatePicker onDataSet is not working properly

  15. 15

    Make datepicker appear below input

  16. 16

    How to set the today's date in datepicker textbox in angularjs

  17. 17

    how to set datepicker when clicked on both textbox and calendar button?

  18. 18

    How to read Date from textBox, having Jquery UI DatePicker

  19. 19

    How to set default date value as current date in a datepicker textbox?

  20. 20

    MVC Required Textbox with JQuery DatePicker

  21. 21

    Jquery Datepicker not updating textbox in IIS

  22. 22

    Implementing DatePicker / DatePickerFlyout on TextBox Tapped

  23. 23

    Making AngularStrap DatePicker Textbox Editable

  24. 24

    DatePicker view calendar from textbox

  25. 25

    Zebra datepicker icon not showing up

  26. 26

    Bootstrap Datepicker appearing at incorrect location in a modal

  27. 27

    jquery-ui datepicker not appearing on dynamic input

  28. 28

    Android Lollipop DatePicker not working properly

  29. 29

    JQuery datepicker not showing properly with css

HotTag

Archive