KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am not quite adept in maneuvering jQuery, and it came to a point that I need to debug a program that was passed down from me without a documentation. I have this var a , an object, that I really want to know the content of its collection. In my mind I need a function like foreach() in PHP to iterate over this object variable. Upon researching I end up in using jQuery.each() . Now I can clearly iterate and see what was inside var a . However, it was kind of annoying to alert once every value on the var a . What I wanna know if it's possible to display all the contents in just one pop of alert box? Here is my code: $.each(a, function(index, value) { alert(index + ': ' + value); }); The var a contains infos such as: creationdate: date_here id: SWFUpload modificationdate: date_here type: .jpg index: 0 name: uploaded_filename.jpg size: size_in_bytes BTW: The var a is called via file upload script.
Tags (comma-separated)
Save Edits
Cancel