I have a while loop that fetches data from a database. I have made three buttons:
> Open
> Hold
> Close
The first time when the page loads, only the open button should be enabled, and the others should be disabled.
After I click the open button, the open button should be disabled, and the hold and close buttons should be enabled.
I got this result for only one row, but in the while loop not for all the rows.
I have used JavaScript with php.
Example:
function onload()
{
document.getElementById("Hold").disabled = true;
document.getElementById("close").disabled = true;
return false;
}
The above code was working for the first row, but I need it to work for all the while loop values.