Print array of elements into table or unordered list. jQuery or HTML
I have an array of elements, I print them out using the following:
function extractResult(result){
jQuery.each(result, function(index, value) {
console.log(index, value);
});
};
It prints out to the console like this:
Mr.
Jim
00000001VKnAAL
Smith
sales
Prof.
3d000001VKkAAL
I want to print it out into a table or unordered list. Could anyone
suggest how I could go about doing this?
I'm happy to use a dynamically generated jQuery table or unordered list if
that would be best.
Cheers!
No comments:
Post a Comment