Response title
This is preview!




$("div[data-role='filter-type']").html()
But it returns undefined.
Please help me to sort out this problem.
function BindJQueryControls() {I have placed below script inside my update panel:
$('#DateOfBirth').datepicker({
altField: '#<%# txtDateOfBirth.ClientID %>',
altFormat: "mm/dd/yy",
changeMonth: true,
changeYear: true,
showOtherMonths: true,
selectOtherMonths: true });
$('#DateOfBirth').datepicker("option", "showAnim", "blind");
}
<script type="text/javascript">Above Code is working fine when User select date.
if (typeof BindJQueryControls== 'function')
Sys.Application.add_load(BindJQueryControls); </script>
string strDOBScript = @"$(function () { $('#DateOfBirth').datepicker(""setDate"", """ + strDateOfBirth + @""");});";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "insexdt", strDOBScript , true);
I have also tried hard coded data at the end of page:
$('#DateOfBirth').datepicker("setDate", "01/12/2013");
But doesn't work.
If I place above code in a separate page without update panel, it is working smoothly.
Can someone please tell me where I am doing wrong?
--
Anuj Rathi
© 2012 jQuery Foundation
Sponsored by
and others.
