Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> jquery wysokość input względem strony, jak pobrać wysokość input
asall
post
Post #1





Grupa: Zarejestrowani
Postów: 42
Pomógł: 0
Dołączył: 11.12.2013

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


jak pobrać wysokość na jakiej znajduje się input ?

  1. var toFocus1 = $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).$(document).first().height();


toFocus1 wskazuje na pola nie wypełnione chciałbym zastosować do niego first oraz height ale pokazuje wysokość pola jak uczynić aby pokazywał różnice między początkiem strony a wysokością pola ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
trueblue
post
Post #2





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

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


  1. var toFocus1 = $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).position().top; //względem rodzica
  2.  
  3. var toFocus1 = $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).offset().top; //względem dokumentu


--------------------
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: 21.08.2025 - 21:10