Alex Rivera | Logout

How to Set the size & position of jquery Date picker calendar icon trigger image

Asked 2012-04-20T04:28:12.923
22

i am using jquery date picker the calendar icon trigger image near textbox is by default is on top i want to set the image size (height) same as textbox height please give me some suggestions my code is

$(#textbox1).datepicker({
    showOn: "button",
    buttonImage: "calendar_1.png",
    buttonImageOnly: true
)};
Edit
Report

2 Answers

29

Inspecting the element with firebug, I got this:

<img class="ui-datepicker-trigger" src="http://xxxxx/officeprime/assets/img/calendar.gif" alt="..." title="..."/>

eg: button.ui-datepicker-trigger img

You can then work with that CSS class ui-datepicker-trigger.

answered 2012-04-20T04:41:33.327
12

You can edit class .ui-datepicker-trigger with jQuery but it's important to make editing after datepicker function.

Example:

$(#textbox1).datepicker({
        showOn: "button",
        buttonImage: "calendar_1.png",
        buttonImageOnly: true )};

$(".ui-datepicker-trigger").css("margin-bottom","-6px");
answered 2013-05-26T10:45:42.560

Your Answer