Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][JavaScript]Jak odczytać zawartość [object HTMLElement], JS
michuwsh
post
Post #1





Grupa: Zarejestrowani
Postów: 51
Pomógł: 0
Dołączył: 1.03.2016

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


Witam pomoże mi ktoś odczytać taka zawartość [object HTMLElement]

  1.  
  2. <script type="text/javascript">
  3. jQuery(document).ready(function(){
  4. jQuery( ".item-options" ).css("display", "none");
  5. var x = jQuery( ".item-options dl dd" ).toArray();
  6. alert(x);
  7. /*jQuery("td.col-2").html(x);*/
  8. });
  9.  
  10.  
  11.  


Alert zwraca mi coś takiego :

[object HTMLElement],[object HTMLElement],[object HTMLElement]

a element który pobieram jest zbudowany z :

  1. <div class="item-option">
  2. <dl>
  3. <dt>Rozmiar</dt>
  4. <dd>40.5</dd>
  5. </dl>
  6. </div>

Pozdrawiam,
Michał
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: 22.08.2025 - 20:29