I need that every text input in a given class is a datepicker. Something like:
$("input[type=text].time").datepicker();
but I'm adding a lot of code via Jquery.load() so I believe I need a delegate. The problem is I don't know how to do it, because as far as I know, load event cannot be used in a delegate. It will be easy if it exists:
$(document).delegate("input[type=text].time", "load", function(){
$(this).datepicker();
});
success
. I haven't found a good alternative to the way you're wanting to use.load()
. – Lixiviate