Not transferred to data forms after the appendto, how to fix?

You have a page with your products and the sort function of prices, the prices I have are stored in the data-price of the objects .box, the code itself:
$('.row').find('.box').sort(function (a, b) {
return +a.getAttribute('data-price') - +b.getAttribute('data-price');
})
.appendTo($('.row'));

everything works and sorts, but here's the problem:
Inside each block .box has a checkbox, and after sorting as they are not point - form will not be sent, or rather go empty, as if input:checkbox do not have it on the page.

How can I fix it?
July 2nd 19 at 16:55
1 answer
July 2nd 19 at 16:57
When sorting redrawn content, if you hang event via js, all engines go you have to hang them again, after sorting.
On the page the checkboxes are already there, they generiruyutsya without js, then they seemed to just not see after redraw. how to make them visible again to send the data - I don't know. - Lavon41 commented on July 2nd 19 at 17:00
Submit form via js is going on? - Shaina commented on July 2nd 19 at 17:03
No, just a form, when you click on input:submit - Lavon41 commented on July 2nd 19 at 17:06
Try at the end of the sorting in js to determine the form and trigger the submit with js. - Shaina commented on July 2nd 19 at 17:09

Find more questions by tags jQuery