|
@{
IDictionary<string, object> htmlAttrStartDate = new Dictionary<string, object>();
htmlAttrStartDate.Add("tabindex", "5");
}
<ej-date-picker id="datepick" ej-for="@Model.dateValue" html-attributes="htmlAttrStartDate"></ej-date-picker>
|
|
<ej-date-picker id="datepick" ej-for="@Model.dateValue" html-attributes="htmlAttrStartDate"></ej-date-picker>
<ej-button id="btn" text="Click Me to focus" click="click"/>
<script>
function click() {
var dateObj = $("#datepick").ejDatePicker("instance");// creating instance for datepicker
dateObj.element.focus();// focusing the datepicker
}
</script> |