<script type="text/javascript"> $(document).ready(function() { $('#agree').change(function() { if ($(this).is(':checked')) $('#add input[name="resume_add"]').removeAttr('disabled'); else $('#add input[name="resume_add"]').attr('disabled', 'disabled'); }); }); </script> <input id="agree" type="checkbox" value="1" name="agree">Я согласен на предоставление информации <input id="add" type="submit" name="resume_add" value="Отправить" disabled>
So for some reason it does not work. But I do not know why.