// `shipment` is unique number
var `shipment` = this.Shipment;
$('<div id=' + this.Shipment + '>' + this.Shipment +'</div>').click(function () {
_Services.invoke({
method: 'GetOrdersGrid',
data: { ShipmentNumber: shipment },
success: function (shipment) {
paintOrders(`shipment`);
the function gets a number of div and needs to put the TEXT into the div
<div id="11626">TEXT</div>
<br>
<div id="12109">TEXT</div>
ERROR: (“#” + items).append is not a function [Break On This Error]
(‘#’ + items).append($(container));
WHEN i use the sollar sign $('#' + items).append($(container));
ERROR
uncaught exception: Syntax error, unrecognized expression: #[object Object]
WHEN i use without the #
$(items).append(container); or $(items).append($(container));
(this[0].ownerDocument || this[0]).createDocumentFragment is not a function
[Break On This Error] var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
You’re missing a
$Change
to
Presuming, of course, that you have an element with
idset to whateveritemsresolves to.