Uncaught Error: Invalid jQuery Selector is thrown when you try to select HTML Element by invalid ID i.e either you have typo in the ID or that HTML Element is not in the DOM.