Kod
td = $(document.createElement('td')).appendTo(tr);
select = $(document.createElement('select')).appendTo(td);
optgr_opt = $(document.createElement('optgroup')).appendTo(select);
select = $(document.createElement('select')).appendTo(td);
optgr_opt = $(document.createElement('optgroup')).appendTo(select);
Bo mam wrażenie jakbym nie postępował w myśl zasady DRY.
Pozdrawiam