asn1981
Joined: 18 Oct 2007 Posts: 1
|
Posted: Thu Oct 18, 2007 12:39 pm Post subject: changing table cell class on button click |
|
|
how can i change a table cells css class using javascript?
the difficult thing is i want the exact css class to be used to be detirmined by some AjaxMethod processing which woiuld return a string variable after some database processing
the javascript i have is something like the below so far:
<script type="text/javascript">
var lastLink ;
function mouseClick(type, subtype, colname, link, value)
{
lastlink = link;
AjaxMethods.FlipCellColour(type, subtype, colname, value, link, updateCell) ;
}
function updateCell(res)
{
lastLink.className = res.value ;
cell = lastlink ;
}
}
but i dont the table cells id is being found |
|