PHP interesse |
|
Ja dat kan:
<script type='text/css'>
function check(field_length, field_id)
{
if(field_length <= document.getElementById(field_id).value.length)
{
document.getElementById(field_id).className = 'normal';
}
else
{
document.getElementById(field_id).className = 'invalide';
}
</script>
<input type='text' id='veld_1' onkeyup='check(5,'veld_1')'>
<script type='text/css'> function check(field_length, field_id) { if(field_length <= document.getElementById(field_id).value.length) { document.getElementById(field_id).className = 'normal'; } else { document.getElementById(field_id).className = 'invalide'; } </script> <input type='text' id='veld_1' onkeyup='check(5,'veld_1')'>
Ik denk zo iets je moet nog wel 2 css classes maken.
Maar dat kan je wel denk ik |