If you're going to edit code from another source into the question, you have to make it clear in the edit summary where that code is coming from. Otherwise, it looks like you're inserting your own code, which is an attempt to reply to or comment on the existing post.
Try this:
Inserted code from [source: JSFiddle, comments, etc.] for context
You said this:
put the code from jsfiddle
That's unclear at best, but it should have gotten the point across: the user who marked it as an invalid edit likely wasn't paying attention and just saw a large code insertion, so rejected it.
The two who said it was too minor were likely referring to the fact that there were other issues with the post ("thanks," grammar, capitalization, "Firefox" and "Chrome" being backticked, etc.) that should have been fixed along with the code insertion.