Jump to content

Javascript push problem


[dx]
 Share

Recommended Posts

Hi, I have problem storing data to array. I have few textareas and I'm trying to fetch data from and store to array and send via ajax after.I'm getting proper data when alerting, one by one, but with loop when trying to store, data are not stored. If I alert joined string, it it like ,something So there's only last data, with comma in front of. I'm using array.push(data);

Link to comment
Share on other sites

you need to show code. also, you should log the array in good browser like Chrome or Firefox (firebug).

console.log(array);

If it's an array, like it should be, then you will see exactly what it looks like and what's in it. Sounds like what you expect to be there isn't what is actually there.

Edited by thescientist
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...