I am trying to find out how to retrieve the existing instance of a DatePicker (or any of them) control and then set a value through standard javascript. I believe on the JS1 version, it was done something like this:
datepickerSet = function (dp, date) {
var b = getObject(dp), d = new Date(date);
if (exists(b)) {
var ejdp = b.ejDatePicker('instance'); ejdp.option('value', d); }
}
How would I go about doing this with EJ2? I am creating the original instance with MVC5 Render(), but need to access and update it after it has been rendered to the page. I found the following link to use "value" method, but doesn't show how to get the instance of something already rendered.
https://ej2.syncfusion.com/15.4.17/documentation/datepicker/api-datePicker.html?lang=es6#value-date