Witam.
Posiadam o to taki formularz z checkboxem
<form name="subscribeform" class="cmxform" id="rej1" method="post" action="http://myweb.pl/skrypt.php"> //formularz
//checkbox
<input type="checkbox" class="checkbox" id="agree" name="agree" validate="required:true" />
Akceptuje
<a href="http://myweb.pl/regulamin">regulamin
</a> i
<a href="http://myweb.pl/regulamin">polityke prywatnosci
</a>
<label for="agree" class="error block">Zakceptuj Regulamin
</label>
Do tego css:
label{ width: 100px; float: left; }
label.error { float: none; color: red; padding-left: 15px; vertical-align: top;}
p { clear: both; }
label.sprawdzony {float: none; background:url("sprawdzony.png") no-repeat 0px 0px; margin-left: 5px; padding-left: 10px;}
No i dorzućmy js
<script type="text/javascript">
$.metadata.setType("attr", "validate");
$(document).ready(function() {
$("#rej1").validate();
});
</script>
Chce teraz dodać jeżeli checkbox będzie zaznaczony
wyświetlała się grafika taka fajeczka.
W css mam już to zrobione
Teraz do tego kodu js według mnie trzeba dodać jakąś klase czy coś.
Nie wiem jak to zrobić.