|
|
|
| Подскажите пожалуйста, как надо дописать в скрипт, чтобы можно было заблокировать нажатие кнопки "Далее" пока пользователь не поставит галочку своего согласия:
Согласен(а):<INPUT type="checkbox" name="dannie" value="yes">
<input type="submit" value="Далее">
|
| |
|
|
|
|
|
|
|
для: lifead
(22.05.2008 в 06:56)
| |
Согласен(а):<INPUT id="check" type="checkbox" onclick="change()" name="dannie" value="yes">
<input disabled="disabled" id="next" type="submit" value="Далее">
</body>
<script>
function change(){
var check = document.getElementById('check');
var next = document.getElementById('next')
if(check.checked) next.disabled=false;
else next.disabled=true;
}
</script>
|
| |
|
|
|
|
|
|
|
для: ONYX
(22.05.2008 в 07:44)
| | Огромное Спасибо! | |
|
|
|
|
|
|
|
для: lifead
(22.05.2008 в 06:56)
| |
<script>
function change(c) {
var next = document.getElementById('next')
next.disabled = c.checked ? false : true;
}
</script>
Согласен(а):<INPUT id="check" type="checkbox" onclick="change(this)" name="dannie" value="yes">
<input disabled="disabled" id="next" type="submit" value="Далее">
|
| |
|
|
|