Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Rozw] [jQuery] pobranie inputa
czesiotest
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 12.09.2009

Ostrzeżenie: (0%)
-----


Witam,

Mam oto taki kod:
  1. <input onChange="java script: test()" type="text" name="test[]" />
  2. <input onChange="java script: test()" type="text" name="test[]" />
  3. <input onChange="java script: test()" type="text" name="test[]" />


Jak pobrać te inputy za pomocą jQuery?

Próbuję tak:
  1. $("input[@name='test[]']");


jednak mam błąd:
  1. Błąd: uncaught exception: Syntax error, unrecognized expression: [@name='test']


Ten post edytował czesiotest 12.09.2009, 16:11:06
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
drake88
post
Post #2





Grupa: Zarejestrowani
Postów: 283
Pomógł: 15
Dołączył: 22.03.2009
Skąd: Bytów

Ostrzeżenie: (0%)
-----


http://forum.php.pl/index.php?showtopic=114873


--------------------
Go to the top of the page
+Quote Post
czesiotest
post
Post #3





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 12.09.2009

Ostrzeżenie: (0%)
-----


Nie ma tam odpowiedzi. Ale jednak wystarczyło użyć dokumentacji dokładnie chodzi o:

"Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your selectors in order to make them work again."

Czyli temat do kosza smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 08:58