I have a table containing this cell -
<td id="section5" height="37" align="center"
class="cellbott omborder">
System Data Maintainance
</td>
How can I read the contents of this cell & set them to something else
dynamically?
The idea is to append an "*" when user had changed some data, so the
following function is called from a controls onchange() event. This works
BUT loses the formattting from the class="cellbott omborder" atrribute -
function changedDetails( )
{
var titleCell = getElement('sec tion5')
var titleText = titleCell.inner Text;
var pos = titleText.index Of("*");
if(pos<0)
titleCell.inner Text = titleText + "*";
}
Probably very simple!
thanks
harry
<td id="section5" height="37" align="center"
class="cellbott omborder">
System Data Maintainance
</td>
How can I read the contents of this cell & set them to something else
dynamically?
The idea is to append an "*" when user had changed some data, so the
following function is called from a controls onchange() event. This works
BUT loses the formattting from the class="cellbott omborder" atrribute -
function changedDetails( )
{
var titleCell = getElement('sec tion5')
var titleText = titleCell.inner Text;
var pos = titleText.index Of("*");
if(pos<0)
titleCell.inner Text = titleText + "*";
}
Probably very simple!
thanks
harry
Comment