function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Selva SelladuraiSelva Selladurai 

Uncaught TypeError: $(...).datepicker is not a function

Hi
I am getting the following error for jquery date picker in visualforce page and this error is only happening in Capetown, but the same page is working in Australia.

Uncaught TypeError: $(...).datepicker is not a function

Any suggestion or ideas on why this is happening?

 
atul patil 7atul patil 7
hello selva,
       $ is already defined in a salesforce so conflict is occure you can use this like as follows
 
j$ = jQuery.noConflict();
 
j$(...).datepicker

 thanx,
Atul Patil
salesforce developer
www.zen4orce.com
Selva SelladuraiSelva Selladurai
Thanks Atul,
It seems to be some firewall issue
Mustafa JhabuawalaMustafa Jhabuawala
Selva,

What do you mean by working in Capetown but not in Australia can you explain me this once please.

Uncaught TypeError: $(...).datepicker is not a function - Basically this error occurs when the library is not loaded, datepicker is a function implemented in jqueryUI javascript file. So before triggering the $(...).datepicker function you need to make sure that the library is loaded first.

Hope this helps you.