0
jagdish posted
.html().appendTo(" in jQuery gives error TypeError: $(...).html(...).appendTo is not a function why ?
I have situation like below ::i had made a var where i put some template like below
var htm='<div class="portlet">div class="portlet-header">##header##</div></div>';
so later i can change its header and append to particular div based on the ajax response.
like below
$(htm.replace("##header##",item)).html().appendTo("#SOME_ID");
but this giving me TypeError: $(...).html(...).appendTo is not a function