jquery_datepicker icon indicating copy to clipboard operation
jquery_datepicker copied to clipboard

'jQuery is not defined' when jquery_datepicker HTML output exists in the DOM before jQuery gets loaded.

Open kellydunn opened this issue 12 years ago • 3 comments

It appears as though jQuery is assumed to be loaded in the DOM before the script tag that gets generated by jquery_datepicker, which results in a 'jQuery is not defined' error upon page load.

Is this by design? Would it be valuable to instead wait for the page to load the entire dom, then execute the javascript necessary to make the desired element a datepicker?

kellydunn avatar Jan 23 '13 22:01 kellydunn

Yes, it is very uncomfortable.

drakmail avatar Jan 24 '13 20:01 drakmail

@kellydunn, I send pull request ( https://github.com/albertopq/jquery_datepicker/pull/36 ). Fixed version in my repo: https://github.com/drakmail/jquery_datepicker

drakmail avatar Jan 24 '13 21:01 drakmail

:+1:
:shipit:

kellydunn avatar Jan 24 '13 21:01 kellydunn