Kaustubh Jadhav

Kaustubh Jadhav

  • NA
  • 91
  • 32.3k

Jquery date-picker is not working in C# master pages.

Apr 17 2018 4:16 AM
Jquery date-picker is not working in C# master pages.
 
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<link rel="Stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/ui-darkness/jquery-ui.css" />
 
<script type="text/javascript">
$(function () {
$("input[id$=txtFDFromDate]").datepicker({ dateFormat: "dd/mm/yy" });
$("input[id$=txtFDToDate]").datepicker({
dateFormat: "dd/mm/yy",
onSelect: function () { $("input[id$=btnDifference]").trigger("click"); }
});
});
</script>
 
 
Error 
<input name="ctl00$ContentPlaceHolder1$txtFDFromDate" type="text" id="txtFDFromDate" class="datepicker"> 
 
 

Answers (1)