$(input).zIndex is not a function

$(input).zIndex is not a function

Hi I seem to have this error when using the datepicker.

I am using a custom build from the UI website which does have the zIndex() function included in it and i just cant work out what is going wrong... Can someone please help !!