function alterpadbottom(id){ if(document.getElementsByTagName){ var table = document.getElementById(id); var rows = table.getElementsByTagName("tr"); document.getElementById(id).style.paddingBottom = '20px'; }
Assuming that the id you're passing to the function is correct (make sure the case and spelling is the same as the id you're referencing) try removing the if statement to see if the code will run through. If it still doesn't, alert each variable after you set it to verify the correct values are being set.
i think its problem with the table.table is not used to padding.i have to first include cell margin then i can use padding.some 1 from other forum told me.