I have tried using console.log
so I can see the content of my array that contains multiple objects. However I get an error saying console.log
is not an object etc. I'm using jquery 1.6.2 and my array is like this:
filters = {dvals:[{'brand':'1', 'count':'1'},
{'brand':'2', 'count':'2'},
{'brand':'3', 'count':'3'}]}
console.log(filters);
What I want to to do is write out the contents of array(filters)
to an alert box (that's what I thought console.log
did) in the filters format. How do I do that?
console
object is only available on certain browsers or add-ons – Knickerbockers