3 ms·
document.querySelector(x).[addEventListener|innerHTML|... etc.] is usually enough for most use cases. You can alias it to $() and .on() if it looks verbose.
by hliyan 3y ago
document.querySelector(x).[addEventListener|innerHTML|... etc.] is usually enough for most use cases. You can alias it to $() and .on() if it looks verbose.