0

I am creating a JavaScript library like jQuery. I was using simple querySelector() method to select elements. Eg. $(element).method().

Then I found jQuery uses sizzle. I also wanted to use sizzle . But how can I use sizzle like jQuery do, It don't have documentation in this topic .

So simply , I want that I use sizzle selector like this $(element) where SizzleSelctor(element) is converted to $Selctor(element) and I could add methods to function or sizzle selector and apply to selected elements. Like $(element).addClass("how to do this");

CodeMania
  • 3
  • 6

0 Answers0