I am working on a rather big software platform that has several implementations. There is one previous implementation that uses jQueryUI datepicker, and I am now working on an interface revamp that uses Bootstrap datepicker.
Is there a way for me to test whether a Bootstrap datepicker is already attached to a certain element, let's say this one
<input type="text" id="user-date" class="datepicker"/>
Notice that I am not asking whether Bootstrap datepicker is loaded as in this qestion. I'm rather asking for a test, similar to this one for jQueryUI datepicker.