Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 189 Pomógł: 1 Dołączył: 28.01.2008 Ostrzeżenie: (0%)
|
Piszę skrypt w oparciu o jQuery i mam pytanie: Czy podany kod można uprościć:
Kod td = $(document.createElement('td')).appendTo(tr); 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 |
|
|
|
S_Olewniczak [jQuery]Czy podany fragment kodu można skrócić? 3.07.2009, 13:27:47
erix Kod$('<td><select>... 3.07.2009, 14:37:03
S_Olewniczak A tan kod:
Kod$(table + ' th'... 3.07.2009, 19:09:44
erix Czepiłeś się tego podświetlania kolumn.
Ja to by... 3.07.2009, 22:17:40 ![]() ![]() |
|
Aktualny czas: 23.12.2025 - 17:38 |