![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 311 Pomógł: 25 Dołączył: 29.08.2011 Ostrzeżenie: (0%) ![]() ![]() |
Witam mam pytanie posiadam taki kod js:
$('#theme').click(theme); function theme() { $('body').attr('class', 'bg-theme bg-theme'); } i chciałbym dodać zmienną do funkcji theme np: $('#theme').click(theme('something')); function theme(varible) { $('body').attr('class', 'bg-theme bg-theme'); } ale niestety funkcja nie wykonuje się, co muszę zmienić żeby można było dodać zmienną ? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 22:58 |