我想更改背景颜色或日期框中的数字。 Here is my fiddle
$(document).on('click', '#Cancel', function() {
$("#AddButton").text('Add');
$(".caseName_h").attr("readonly", false);
$.mobile.changePage($("#Home"),{transition:'none'});
});
答案 0 :(得分:2)
您必须定位三个输入的特定元素:
<强> Here is a demo. 强>
.ui-datebox-dboxin .ui-block-a > input {
background-color:red;
}
.ui-datebox-dboxin .ui-block-b > input {
background-color:blue;
}
.ui-datebox-dboxin .ui-block-c > input {
background-color: green;
}
答案 1 :(得分:0)
是否要更改所选日期输入字段或日期框本身的颜色?
Please refer to this link,可以设置inputTheme
属性,以满足您的需求。