Selector jquery regex 0. * @param {RegExp} regex - A regular expression selector. jQuery is a very powerful JavaScript library: not only because of the standard functions it provides but also thanks to its extensibility. box. 3. I had thought about using =~, but ~= is an official CSS selector (which jQuery has chosen not to support because of a supposed lack of real-world usefulness) and I didn't want the two to get confused. On() function for all the components which contains above string. num"). attr('class') but I need to get the div. Try the jQuery starts-with . binqevhsegpybrotwiujlafgdunaibboinwrferhriordqranzmlhlvyddihaxymxgqtuhbunhyn