Jump to content
  • 0

Checkbox и textarea


Lag
 Share

Question

Хотел сделать так чтобы только полсе прокрутки содержимого в текст. поле можно было поставить флажок. Но как то не получилось, помогите найти ошибку. Заранее благодарен.

(P.S. onclick="f_click();" привязанно к другой функции и работает)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD Html 4.01//EN"
"http://www.3.org//TR/html4/transitional.dtd.">
<html>
<head>
<title>Флажок</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script type="text/javascript">
<!--
function f_flag() {
document.getElementById(check1).disabled = false;
}

//-->
</script>
</head>
<body>
<center><h2>Пример использования событий</h2></center>
<form>
Текстовое поле:<br><br>
<textarea name="pole1" id="pole1" rows="10" cols="50"
readonly onscroll="f_flag();">
Текст
111111111
11111111
1
1
1
1
1
1
1
1
1
1
1
1
</textarea><br>

<input type="checkbox" name="check1" id="check1" onclick="f_click();" disabled>Принять<br>
</div>
</form>

</body>
</html>

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy