I'm using jQuery.each to iterate through an array of properties on a data object... Example below.
$.each(this.data, function(key, val) {
out = "<" + key + ">" + this.do_somethingwithval(val) + "</" + key + ">";
});
Obviously the "this.do_somethingwithval(val)" is a problem because context of "this" is changed within $.each.
I need a way to set the context within the $.each, or a means of changing "val" as it is passed in.
Any suggestions?