I am trying to $.append
dynamically constructed elements inside a dynamically constructed element inside of a custom plugin:
$('<div/>').append( function(){
$.each(paramaterObject.rows, function(rowKey, rowValue){
return $('<div/>')...
but Chrome console gives Object [object Array] has no method 'apply'
.
Is it possible to $.append()
this way? If not, is there an alternative? Please show me how.