^ Scroll to Top
Contact us | Login

Archive for August, 2012

JavaScript Object alert, print_r for javaScript / jQuery

Saturday, August 11th, 2012

Just a quick post to share a nice wee codeĀ snippetĀ for debugging javascript objects with jQuery

jQuery.each(OBJECT_NAME, function(key, element) {
    alert('key: ' + key + '\n' + 'value: ' + element);
});