Is there a way to know if a textfield is an instance of jQuery UI Datepicker?
In example, lets say I have this code:
$('#item_id').datepicker();
Is there a way to do something like this:
if($('#item_id') IS NOT A DATEPICKER YET)
{
$('#item_id').datepicker();
}
The above conditional check, of course, is in human language and not JavaScript regular code ;)
PS: I know my question is very general, but my English are not so good :(