Unexpected method call or property access in IE7 and IE8

I am using jquery-1.3.2.min.js in my project. My application works fine in all browsers except IE7 and IE 8. It causes the following error.

SCRIPT65535: Unexpected method call or property access. jquery-1.3.2.min.js, line 12 characters 2305

I was looking for a solution, but did not get the right solution. please help me solve this problem.

Thanks,

Atul Patel.

+4
source share
1 answer

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.

+11
source

Source: https://habr.com/ru/post/1391777/


All Articles