This is the syntax of the code
document.getElementById('thediv').style.[ATTRIBUTE] = '[VALUE]'
f for Ex:
document.getElementById("xyz").style["paddingTop"] = '10px' ;
this code will changes the padding to 10px.
This is the syntax of the code
document.getElementById('thediv').style.[ATTRIBUTE] = '[VALUE]'
f for Ex:
document.getElementById("xyz").style["paddingTop"] = '10px' ;
this code will changes the padding to 10px.
Comments
Post a Comment