Question: typeerror jquery(...).datepicker is not a function in wordpress?
Answer: The jquery. ui is used before jquery.
The $ is used by another library.
The jquery lib that is referenced locally(wordpress) has different version from that using jquery. ui.
When the right library and version is referenced the browser cache must be cleared.