SyntaxFix
Write A Post
Hire A Developer
Questions
I tried both .empty() as well as .remove() for my dropdown and both were slow. Since I had almost 4,000 options there.
.empty()
.remove()
I used .html("") which is much faster in my condition. Which is below
.html("")
$(dropdown).html("");