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

后端 未结 6 958
轻奢々
轻奢々 2021-01-01 12:20

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

6条回答
  •  攒了一身酷
    2021-01-01 13:10

    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");
    

提交回复
热议问题