The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery script strange issue Re: jquery script strange issue


For some odd reason, when you copy code from jsFiddle – this is just recently – it adds an invisible character to the end of the copied string. When I paste it into my editor, sometimes it shows up as a “?” and other times it is completely invisible. When I switch my editor to hex mode, I see it adds the following: E2 80 8B which is the unicode character for a zero-width space (ref). I don’t know why it gets added to the end, but it does.

The easiest fix is to go to the end of your code and hit backspace until the last semi-colon disappears, you should notice that you press the backspace one time in there without the cursor moving.

Edit: The problem has been reported, but won’t be fixed until they move into jsFiddle beta.