I wish to convert button link with js from html to php
i added click function when i wrote this code in php the onclick function not working
Html
<button onclick="document.getElementById('id01').style.display='block'" style="width:auto;">
</button>
Corephp
<?php
echo '<button onclick="document.getElementById("id01").style.display="block" " style="width:auto;">';
?>
This php echo line not working that means that onclick function.