Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JQuery] Błędna nazwa input ?
ewelinac18
post
Post #1





Grupa: Zarejestrowani
Postów: 99
Pomógł: 0
Dołączył: 11.07.2007

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


Witam, niestety ale mam problem z nazwą input, otóż input z nazwą '#id' działa poprawnie ale jak już dodam '#id[1]' to niestety nie może znaleźć.

  1. function fill(id) {
  2. $('#id[1]').val(id);
  3. }


czy ktoś wie jak temu zaradzić (IMG:style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ewelinac18
post
Post #2





Grupa: Zarejestrowani
Postów: 99
Pomógł: 0
Dołączył: 11.07.2007

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


Kod
  1. <div id="suggest">Lista produktów: <br />
  2.  
  3. <input type="text" size="5" value="" id="id[1]" class="" />
  4. <input type="text" size="25" value="" id="prodName[1]" onkeyup="suggest(this.value);" class="" />
  5. <input type="text" size="10" value="" id="productCode[1]" class="" />
  6. <input type="text" size="5" value="" id="price[1]" class="" />
  7.  
  8. <input type="text" size="5" value="" id="id[2]" class="" />
  9. <input type="text" size="25" value="" id="prodName[2]" onkeyup="suggest(this.value);" class="" />
  10. <input type="text" size="10" value="" id="productCode[2]" class="" />
  11. <input type="text" size="5" value="" id="price[2]" class="" />
  12.  
  13. <div class="suggestionsBox" id="suggestions" style="display: none;"> <img src="arrow.png" style="position: relative; top: -12px; left: 30px;" alt="upArrow" />
  14. <div class="suggestionList" id="suggestionsList"> &nbsp; </div>
  15. </div>
  16. </div>


wszystko zależy od ilości produktów
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 5.10.2025 - 00:54