jquery - Can't override the selected row background color -
i've been trying long already. can't specificity issue since went overboard , added new unique classes , id row element while tracing body element - yet background color still not change. color of text, height of row etc. change totally.
i attempt attack .selected class bootstrap-table automatically adds on selected rows. have tried using own new .highlighted class toggled via jquery , bt oncheck property.
i've exhausted options can think of. don't understand why specific property not budge.
code snippets:
//table setup. (data retrieved through json response) columns built json response. works , good. $('#results-table').bootstraptable({ data: new_result, columns: columns, sortable: true, pagination: true, search: true, showcolumns: true, sortname: "lastname", striped: false, clicktoselect: true, maintainselected: true, onclickrow: function(e, row, element){highlightrow(e, row, element);}, }); //initiated when oncheck event occurs. function highlightrow(e, row, element){ $(row).toggleclass("highlighted"); console.log("highlightrow worked."); } // css (i have tried version maximum specificity mention above. tr.highlighted { background-color: var(--site-yellow) !important; color: green; any idea do? want changed green palette yellow.
thanks!
Comments
Post a Comment