Parašė bruzgis· 2008 Sau. 31 10:01:07
#8
checkboxas:
<input type='checkbox' name='la' value='1' onClick='check(this, document.inputform.register)'>
Buttonas:
<input type='submit' name='register' value='registruotis' class='button'disabled>
ir javascriptas prie sito:
<script language='JavaScript'>
function check(checkbox, register) {
if(checkbox.checked==true){
register.disabled = false;
}
else {
register.disabled = true;
}
}
</script>
Ka jis daro? ko nepazymetas laukelis neleidzia spausti mygtuko :)