Created
October 19, 2012 12:17
-
-
Save SKoschnicke/3917956 to your computer and use it in GitHub Desktop.
JQuery append only accepts real JS arrays, not JQuery-objects representing arrays (as map returns). Solution: Convert to JS array with makeArray.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('<tr></tr>').append( | |
$.makeArray($(data).map(function(index, element) { | |
return $('<td></td>').html(element.instrument_name) | |
})) | |
).appendTo(custom_factor_table) | |
$('<tr></tr>').append( | |
$.makeArray($(data).map(function(index, element) { | |
return $('<td></td>').html('bla') | |
})) | |
).appendTo(custom_factor_table) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment