TheLazyPig
Programmer
Hi!
I have 3 buttons visible
View attachment 1551
If I click Add button only Add button should be visible.
View attachment 1552
Then If I click back the Add button it will display all
View attachment 1553
But after I click it back the other button is not aligned.
What could be the reason why it is not aligned?
Thank you for the answers
I have 3 buttons visible
View attachment 1551
If I click Add button only Add button should be visible.
View attachment 1552
Then If I click back the Add button it will display all
View attachment 1553
But after I click it back the other button is not aligned.
JavaScript:
function addBank(polno){
var editbtn = document.getElementById("btnEdit");
var selectbtn = document.getElementById("btnSelect");
if (document.getElementById("addNewRow").style.display=='none') {
document.getElementById("addNewRow").style.display = 'table-row'; // set to table-row instead of an empty string
selectbtn.style.display = "none"; // Hide button
editbtn.style.display = "none"; // Hide button
}
else {
document.getElementById("addNewRow").style.display = 'none';
selectbtn.style.display = "block"; // Show button
editbtn.style.display = "block"; // Show button
}
}
What could be the reason why it is not aligned?
Thank you for the answers