|
hello!
can anybody show me how to highlight a single row from a table generated from db after clicking a search button.
|
|
|
you need to tell us more about what you mean
|
|
|
Agreed, need a litte more information. Say the search comes back with 50 rows. You want to know how to highlight one specific row? Based on what? Or do you mean to have the rows highlight as the mouse moves over them? Let us know--we are glad to help.
|
|
|
|
|
You can use Javascript to do this... Very simple...
<script>
//by default browser will take this as javascript
var CurE1;
var OldE1;
function TurnColor(0 {
if(even.srcElement.parentelement.className=="Select"){
if (OldE1!=null) {
Old.style.backgroundColor="";
}
CurE1=event.srcElement.parentElement;
CurE1.style.backgroundColor="#D9DACD";
OldE1=CurE1
}
}
</script>
Then in the row...
<tr onClick="TurnColor();">
|
|
|
|
|