Filed Under (General) by Wenbert on 03-03-2008
Put this inside your form tags:
-
-
style="margin: 0pt; display: inline;"
-
//so it would be something like:
-
< form style="margin: 0pt; display: inline;"> Input boxes here…< / form >
Filed Under (General) by Wenbert on 19-02-2008
The scenario: Every time you click on a row, the row highlights. When you click on the highlighted row - remove the highlight.
The jQuery / Javascript code:
-
-
//highligths the clicked row
-
function highlightrow(obj) {
-
if ($(obj).attr("style")==‘background-color: rgb(255, 255, 187);’ || $(obj).attr("style")==‘BACKGROUND-COLOR: #ffffbb’) {
-
$(obj).removeAttr("style");
-
} else {
-
$(obj).attr("style","background-color: #FFFFBB;");
-
}
-
}
-
And for the HTML Code:
-
-
..rest of the HTML tags here…
-
< tr onclick="highlightrow(this);" >
-
..rest of the HTML tags here…
-