Zaznacz wszystkie (name[], jeden button) |
Zaznacz wszystkie (name[], jeden button) |
5.12.2012, 10:44:32
Post
#1
|
|
Grupa: Zarejestrowani Postów: 109 Pomógł: 0 Dołączył: 5.11.2009 Ostrzeżenie: (0%) |
Kto pomoże przerobić kod aby był jeden przycisk (Zaznacz wszystko / Odznacz wszystko)
Podaje kod, działający (IE,Fox,Chrome):
Prośba o przerobienie na jeden przycisk (Zaznacz/Odznacz) |
|
|
5.12.2012, 12:14:38
Post
#2
|
|
Grupa: Zarejestrowani Postów: 873 Pomógł: 25 Dołączył: 24.07.2005 Ostrzeżenie: (0%) |
a tak ?
edytowalem bo mi się coś nie udało. teraz działa - sprawdzilem
Ten post edytował john_doe 5.12.2012, 12:26:52 |
|
|
5.12.2012, 13:10:41
Post
#3
|
|
Grupa: Zarejestrowani Postów: 109 Pomógł: 0 Dołączył: 5.11.2009 Ostrzeżenie: (0%) |
Dzięki Dżony !
A jeszcze jak przerobić by przycisk był taki dla pustych checkboxów :
następnie taki, dla zaznaczonych
Aby się dynamicznie zmieniał. |
|
|
5.12.2012, 13:43:17
Post
#4
|
|
Grupa: Zarejestrowani Postów: 873 Pomógł: 25 Dołączył: 24.07.2005 Ostrzeżenie: (0%) |
ogólnie trzeci parametr wyrzuć z tych inputów jest niepotrzebny już teraz Ten post edytował john_doe 5.12.2012, 13:53:02 |
|
|
5.12.2012, 14:32:16
Post
#5
|
|
Grupa: Zarejestrowani Postów: 109 Pomógł: 0 Dołączył: 5.11.2009 Ostrzeżenie: (0%) |
Przycisk działa ale, zaznacza tylko pierwszy z inputów i usuwa tylko ten wybrany pierwszy z inputów.
Inputy są w pętli, mniej więcej 30. |
|
|
5.12.2012, 14:41:07
Post
#6
|
|
Grupa: Zarejestrowani Postów: 873 Pomógł: 25 Dołączył: 24.07.2005 Ostrzeżenie: (0%) |
coś zepsułeś... nie dodałes id do buttona ( id="btn" )
przeklej sobie to wszystko
Ten post edytował john_doe 5.12.2012, 14:50:48 |
|
|
6.12.2012, 08:43:42
Post
#7
|
|
Grupa: Zarejestrowani Postów: 109 Pomógł: 0 Dołączył: 5.11.2009 Ostrzeżenie: (0%) |
Git majonez,
"POMÓGŁ" |
|
|
Wersja Lo-Fi | Aktualny czas: 21.09.2024 - 13:03 |