// https://smartideal.net/kak-pomenyat-dva-bloka-mestami/
jQuery.fn.swap = function(b) {
b = jQuery(b)[0];
var a = this[0],
a2 = a.cloneNode(true),
b2 = b.cloneNode(true),
stack = this;
a.parentNode.replaceChild(b2, a);
b.parentNode.replaceChild(a2, b);
stack[0] = a2;
return this.pushStack(stack);
};
var leftBlock = $('.left').swap('.right');
var leftBlock = $('.left').swap($('.right'));
var inputs = $('.favorites-offer-options-wrapper').find(':input');
// Для формы
var inputs = [];
$("form").each(function(){
inputs[inputs.length] = $(this).filter(':input') //<-- Should return all input elements in that specific form.
});