Saturday 15 May 2010

jquery - in IE 10 javascript array does not work -



jquery - in IE 10 javascript array does not work -

i working on project.

i have used javascript array store , send these value server using ajax call.

i have create array below:

var item1 = "first value"; var item2 = 123; var item3 = "last ele "; var info = [item1, item2, item3]; console.log(data);

the array elements mixture values, means int/string.

immediate after, have tried print array in console says undefined.

does know resolve this?

i have tried initialize 1 array , print it.

but not possible.

as:

var data_array = [1, 2, 3]; console.log(data_array);

still "undefined".

there's chance it's not array that's undefined, value of console.log (or console) that's undefined. recall, ie10 doesn't define console until you've opened dev tools. if seek run page writes console.log without having dev tools open, you've got chance of running undefined error.

what precise error seeing? can provide screenshot?

javascript jquery arrays internet-explorer-10

No comments:

Post a Comment