我有这个代码:
$("div[id^='intCell']").mouseover(function() {
$(this).css({ "border:","1px solid #ff097c"});
}).mouseout(function() {
$(this).css({"border:","1px solid #000"});
})
但我无法让它工作!在 html 中有一个由 php 生成的具有 intCell_1、intCell_2 等 id 的 div 列表。有什么想法吗?