TIL is short for "Today I Learned" and it's where I collect small, practical nuggets of information that I've recently discovered or explained to someone. I believe these little gems of knowledge are too useful to be lost in the vastness of social media platforms like Twitter or GitHub comments, so I keep them safe here. Think of TIL as my digital garden, where I can nurture these nuggets of knowledge and watch them grow. ๐ฑ
โฝ Vanilla JavaScript - Wildcard (*) Selector
Mar
12
In vanilla JavaScript, we can use wildcard (*) to match multiple elements (nodes) in the HTML DOM object. We can also match elements with attribute starting with, ending with or contains certain values. For example, the following selectors willย [name^="password"] will match all elements withย nameย starting with