Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> czy element ma klase z jquery, co robie nie tak ?
asall
post
Post #1





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

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


co robie nie tak ?

<script>
if ($("input[name=zdjecie_1]").hasClass("error_pole")) {$( "#myDiv" ).show();}else{$( "#myDiv" ).hide();}
</script>
<div id="myDiv"><label class="error_pole">Pole wymagane</label></div>
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: 28.09.2025 - 00:43