Output the name and value of the properties in a javascript object

/ Published in: JavaScript
Save to your folder(s)

The code below will loop through the properties in an object and alert a string. myObject is in JSON notation. The "for ( x in y)" construct does not work if the Prototype.js library is included on the page

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.