This error usually occurs when there's an invalid selector passed in the jQuery function. The issue is that the selector is not properly formatted as a CSS selector.
The problem here is that 17:00 is not a valid value to be used directly in a selector, as : is a reserved character in CSS selectors.
A solution to fix this issue is to escape the : character using two backslashes \\: in the selector string like this:
56 chars2 linesAlternatively, you can also use the attribute selector without quotes, like this:
54 chars2 linesThen you can add an error handling when parsing the selector:
155 chars6 lines
This way, you can handle errors that may occur during the jQuery selector parsing.
gistlibby LogSnag