Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript] Długość tytułu
marcin0077
post
Post #1





Grupa: Zarejestrowani
Postów: 94
Pomógł: 0
Dołączył: 18.10.2008

Ostrzeżenie: (10%)
X----


Witam

Mam takie kod:

  1. if(subForm.elements["username"].value.length < 3 || subForm.elements["caption"].value.length < 2) {


i chciałbym zrobić żeby tytuł nie mógł być większy niż 30 znaków
zrobiłem coś takiego:

  1. if(subForm.elements["username"].value.length < 3 || subForm.elements["caption"].value.length < 2) || subForm.elements["caption"].value.length > 30){


ale lipa


pomoże ktoś?

Ten post edytował marcin0077 30.05.2010, 13:31:08
Go to the top of the page
+Quote Post

Posty w temacie


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 - 19:19