npm install jquery@2 --save
npm install jqueryui --save
npm install @types/jquery@2 --save
npm install @types/jqueryui --save
import { SPComponentLoader } from '@microsoft/sp-loader';
import * as $ from 'jquery';
import 'jqueryui';
<input type="text" id="txtDate" >
public constructor() {
super();
SPComponentLoader.loadCss('//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css');
}
public BindDatePicker()
{
$("#txtDate").datepicker();
}
Thank you. It worked!
ReplyDelete