
Hi ,
Have anyone tried Enabling and Disabling a date time field in portal web-form and disable weekends in calendar . please share the jquery/ java script code.
any suggestions are welcome.
*This post is locked for comments
I have the same question (0)For anyone still interested, I have achieved this in a version 9 portal using the following jQuery.
$("div.input-group.datetimepicker").eq(0).data("DateTimePicker").disable();
Essentially you are looking for the DIV containing the datetimepicker class and use the relevant jQuery selector to select it. In my case I have multiple instances on a form so I use the jQuery 'eq' method (https://api.jquery.com/eq/) to identify the specific instance.