任何想法讓jQuery UI DatePicker出現在如下圖所示的位置,並且如果點擊小日曆圖標按鈕並且仍然打開它在輸入框下方,如果輸入文本框被點擊則與輸入框左對齊?如何動態顯示jQuery UI DataPicker取決於點擊什麼
我想如果我能察覺點擊一下,然後可以按照以下使用beforeShow:
beforeShow: function(input,inst){
//check if the icon is clicked, then
inst.dpDiv.css(
{
marginLeft: input.offsetWidth + 5 + 'px'
}
);
//end if
},
但是我怎麼檢測是否被點擊的圖標,然後更改默認的CSS?