I also experienced this error using jQuery 1.7.1.
The error was caused by me! I used .text("foo") in the input field, which used to be <span> . So when I changed .text("foo") to .val("foo") everything worked.
To find out what caused the error, I started debugging by checking the column in the console every time I stepped back.
source share