Type Mismatch Error When Using Jquery
- Forums
- Javascipt
- Type Mismatch Error When Using Jquery
in this page i will show you what i did to resolve this error i was getting on my internet explorer that said type mismatch when i was using jquery code [2240], Last Updated: Mon Jun 24, 2024
Adss
Sun Jan 08, 2012
0 Comments
864 Visits
hi everyone, i just wanted to tell you about a problem i had while using jquery.
i had a script that i was working and i kept getting this error message on internet explorer tha said: Type mismatch on jquery.min.js
so what does it mean? i dont know, but i will tell you how i was able to fix it.
so this is what i was doing, i wanted to show some message on a div using the innerhtml from jquery, so my code looked like this:
$("#JsOutput").html(jv1ActionArray);
can you see what the problem is? no. ok i will tell you.
the problem was that i was using an array variable. once i changed it to this it worked:
var WebuneTest = 'Can you see me';
$("#JsOutput").html(WebuneTest);
it worked!!! so basically, i was using an array not an array element or a variable
in php we call it string.