I’m normally a jQuery developer and have to work on an extJs Project.
It’s the ExtCore v. 3.1.0 without any extensions (and an update isn’t possible yet)
So now my problem…
I need something similar to this jQuery Code:
$(document).on('focusin', 'input[type="text"]', function(event){
$(this).empty();
});
But I can’t find anything to add Eventlistneres to multiple elements.
Is that possible with just the extCore?
Thanks in advance.
You can use
addListenerwith delegate (or useonwhich is a shorthand foraddListener):The delegate is a simple selector to filter the target or look for a descendant of the target.
For example: