<div class="frame">
@Html.EJ().DropDownList("ddl").CssClass("customdisable").ReadOnly(true).WatermarkText("Select an item")
@Html.EJ().DatePicker("datepick").CssClass("customdisable").ReadOnly(true)
@Html.EJ().MaskEdit("edit").CssClass("customdisable").ReadOnly(true).WatermarkText("(999)999 - 9999")
</div>
<style>
.customdisable.e-ddl.e-widget .e-input
{
background:#eee;
opacity: .35;
}
.customdisable.e-ddl.e-widget .e-in-wrap
{
border-color: #e3e3e3;
background-color: #f5f5f5;
opacity: initial;
}
.customdisable.e-ddl.e-widget .e-select
{
background: #d6d7d7;
border-color: #ccc;
opacity: .35
}
.customdisable.e-datewidget
{
background-color: #f5f5f5;
border-color: #e3e3e3;
}
.customdisable .e-datepicker.e-input,.customdisable.e-mask .e-maskedit{
opacity:0.35;
}
.customdisable.e-datewidget .e-select
{
background-color:#d6d7d7;
opacity:0.35;
}
.customdisable.e-mask{
background-color: #f5f5f5
}
</style> |
It works, thank you for your help!