hello
i need help about getElementById( id) function
function setFontSize(siz e) {
document.getEle mentById('fonts ize').style.fon tSize = size;
}
is my function
it isn't showing
i think i used first ID inside of second ID
the 'fontsize' is inside of 'opentable'
1st version:
[HTML]
<a href='#' onclick="setFon tSize(15)">15</a>
<table id='opentable'> <tr><td><div id='fontsize'>H ello</div></td></tr></table>[/HTML]
2nd version
[HTML]<a href='#' onclick="setFon tSize(15)">15</a>
<table id='opentable'> <tr><td id='fontsize'>H ello</td></tr></table>[/HTML]
it doesn't change
i need help about getElementById( id) function
function setFontSize(siz e) {
document.getEle mentById('fonts ize').style.fon tSize = size;
}
is my function
it isn't showing
i think i used first ID inside of second ID
the 'fontsize' is inside of 'opentable'
1st version:
[HTML]
<a href='#' onclick="setFon tSize(15)">15</a>
<table id='opentable'> <tr><td><div id='fontsize'>H ello</div></td></tr></table>[/HTML]
2nd version
[HTML]<a href='#' onclick="setFon tSize(15)">15</a>
<table id='opentable'> <tr><td id='fontsize'>H ello</td></tr></table>[/HTML]
it doesn't change
Comment