<!DOCTYPE html> <html> <head> <title>Untitled</title> <meta charset="utf-8"> <style type="text/css"> </style> </head> <body> <form id="anonimus" name="anonimus" value="anonimus" method="POST" action=""> <div class="row uniform"> <div class="6u 12u(medium)"> <input type="checkbox" id="demo-copy" name="demo-copy"> <label for="demo-copy">Опубликовать как запись</label> </div> <div class="6u 12u(medium)"> <input type="checkbox" id="demo-human" name="demo-human"> <label for="demo-human">Опубликовать как комментарий</label> </div> </div> <div class="row uniform"> <div class="6u 12u(xsmall)"> <input type="text" name="token" id="token" placeholder="Ваш токен: 1a2b3c4d5e6f7g8h9l0m *" disabled /> </div> <div class="6u 12u(xsmall)"> <input type="text" name="data_2" id="data_2" placeholder="Время публикации: дд.мм.гггг чч:мм" disabled /> </div> <div class="6u 12u(xsmall)"> <input type="text" name="owner_id" id="owner_id" placeholder="ID пользователя: 123456789 *" disabled /> </div> <div class="6u 12u(xsmall)"> <input type="text" name="komment" id="komment" placeholder="ID комментария 123 *" disabled /> </div> <div class="12u"> <input type="text" name="attachments" id="attachments" placeholder="Ваше вложение: photo123456789_123456789" disabled /> </div> </div> <div class="row uniform"> <div class="6u 12u(xsmall)"> <textarea name="message" id="message" placeholder="Ваше сообщение *" rows="6" disabled ></textarea> </div> <div class="6u 12u(xsmall)" align="center"><p>Цифровой код в нижнем регистре</p> <img src="site_captcha/captcha_an.php" id="captcha_an" class="captcha_an" onclick="document.getElementById('captcha_an').src = 'site_captcha/captcha_an.php?' + Math.random()" alt="Цифровой код"/> </div> </div> <div class="row uniform"> <div class="6u 12u(xsmall)"> <input type ="text" name="captcha_an" placeholder="Цифровой код *" id="captcha_vk" disabled /> </div> <div class="6u 12u(xsmall)"> <input type="text" name="protection" id="protection" placeholder="Антиспам. Не заполнять!"/> </div> </div> <div class="row uniform"> <div class="12u"> <ul class="actions"> <li><input type="submit" class="button special" value="Отправить" /></li> <li><input type="reset" class="button" value="Отмена" /></li> </ul> </div> </div> </form> <script type="text/javascript"> document.getElementById("demo-copy").addEventListener("change", function(e) { document.getElementById("token").value =''; document.getElementById("data_2").value =''; document.getElementById("owner_id").value =''; document.getElementById("komment").value =''; document.getElementById("attachments").value =''; document.getElementById("message").value =''; document.getElementById("captcha_an").value =''; document.getElementById("token").disabled=!this.checked; document.getElementById("data_2").disabled=!this.checked; document.getElementById("owner_id").disabled=!this.checked; document.getElementById("komment").disabled=!this.checked; document.getElementById("attachments").disabled=!this.checked; document.getElementById("message").disabled=!this.checked; document.getElementById("captcha_an").disabled=!this.checked; }); </script> </body> </html>