Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when run my mvc application it is working on chrome but not working on IE the error shows below "JavaScript runtime error: Object doesn't support property or method 'remove()'" please help me.
Posted

1 solution

Remove() method is not cross-browser. However, there's a workaround[^]

UPD: Excuse me, I didn't notice you marked your question as jQuery. Could you please clarify if this errors appears when working with jQuery object or DOM object?
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 24-Mar-15 11:01am    
The question is about jQuery .remove(), not DOM .remove(). Did you check up if the jQuery implementation uses not a cross-browser method? It would be weird... Just checking...
—SA
Timberbird 24-Mar-15 11:08am    
My bad - didn't pay atention to the tags, as I've met this problem previously in plain JavaScript. I'll update the solution.
Sergey Alexandrovich Kryukov 24-Mar-15 11:11am    
It may take the inquirer's code sample, because I would hardly believe that the problem can be detected if you create some simple jQuery code sample with .remove()...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900