<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>var jQ = $.noConflict(true);
// version 1
jQ(document).ready(function () {
//jQ("input[name='agree_text']").hide();
jQ("input[name='do_you_agree[]']").on('click',
function() {
if (this.checked) {
jQ("input[name='agree_text']").val("I agree to
the terms provided by the form.");
}else{
jQ("input[name='agree_text']").val("");
}
});
});</script>