Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有用于操作数据的表和 JQuery 对话框。当我在对话框上按保存以突出显示我更改或添加的行时,我想更改操作行的背景颜色。这怎么可能?我使用 flexigrid 生成表格。谢谢...
我认为您应该为您的表格定义两个 CSS 类:一个用于普通行,另一个用于选定行。
然后你可以删除顺便说一句。添加(更改)具有addClass/romoveClass.
addClass/romoveClass
我想你正在寻找类似的东西
$("tr","table#<id>").get(<row Index>).css"background-color", <colour>);