I am using a foreach loop to load data from mysql table using php.
Now I have a button with a javascript function next to each foreeach set of data to display the data.
The problem is, the button only works on the very first fetched data in the foreach loop. I am not sure what the problem is?
Here is my code https://jsfiddle.net/7qL2osp5/
I am using this script btw
<script type="text/javascript">
function bigger(){
document.getElementById("approvals-data-box").style.width="95%";
document.getElementById("actual-data").style.display="block";
}
</script>
Thanks