Click here to Skip to main content
15,936,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I am using a calendar and i m disabling the calendar by using js function and calling that from code behind .The control goes to code behind it executes the jquery line without any errors but calender is not disabling. The jquery line i have used is

$('.' + getcssname).datepicker('disable');


where getcssname is the classname of the corresponding textbox of the datepicker which i m passing from code behind. The same jquery line and js function is working fine in all other pages except 1 page.. I have no idea why same function same code which works in other pages is not working here. I am passing correct textboxid or classname but still its not working. I also tried other ways like:

$('.' + getcssname).datepicker('disable');
           $('.' + getcssname).datepicker('option', 'disabled', true);
           $("#MainBody_PayRollSchedule_txt1stPayrollDate").datepicker('disable');


All these ways also did not disable the calendar. I also checked for any Script errors and also the console in web developer tools there is nothing showing. Please Please can you help me in solving the problem and disbling calendar. Thanking You in advance.
Posted
Comments
navin ks 16-Jan-14 2:54am    
maybe you missed js file reference in that particular page.
Shruthi.BT 16-Jan-14 4:33am    
no that is there in master page and in all pages master page is called.
Do you see any errors in Developer Tool's console tab?
Shruthi.BT 16-Jan-14 4:51am    
no.. there are no errors..
Then set a debugger inside the code by writing "debugger;" and check if the values are correct.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900