我有datetimepicker插件
每次我选择日期时......清除按钮隐藏....以下是
的代码$( ".dateTimePicker" ).datetimepicker({
showButtonPanel: true,
beforeShow: function( input ) {
setTimeout(function() {
var buttonPane = $( input ).datepicker( "widget" ).find( ".ui-datepicker-buttonpane" );
$( "<button >", {
class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all",
text: "Clear",
click: function() {
input.value="";
$.datepicker._hideDatepicker();
}
}).appendTo( buttonPane );
}, 1 );
}
});