i need to disable all inputs from a form when a php condition is true. i tried something like that but it does not work. if someone can help me :)
<?php if(1==1){?>
<script type="text/javascript">
$(document).ready(function() {
$('#formEtape1').find('input, textarea, button, select').prop('disabled',true);
});
</script>
<?php } ?>