I am facing a situation where the id attribute is inputted by an end user. For instance, if the id for a textbox is "11_=11" as entered by the user, then the HTML code will appear like this:
<input type="text" id="11_=11">
The corresponding jQuery selector would be:
$("#11_=11")
However, this results in an error as an unrecognized expression. I could limit the characters that the user can enter for the id attribute, but I am unsure of which characters are causing issues with the jQuery selector. Can you please provide some guidance?