我怎样才能得到“的”呢;运输署";在带有jquery的表元素中?
我需要得到一个表的“td”元素。我无法向“td”元素添加mouseover或onclick事件,因此需要使用JQUERY添加它们 我需要JQUERY将mouseover和onclick事件添加到表中的所有“td”元素中我怎样才能得到“的”呢;运输署";在带有jquery的表元素中?,jquery,Jquery,我需要得到一个表的“td”元素。我无法向“td”元素添加mouseover或onclick事件,因此需要使用JQUERY添加它们 我需要JQUERY将mouseover和onclick事件添加到表中的所有“td”元素中 这就是我需要的,也许有人能帮我 从下面的代码开始。它应该能满足你的需要 $(function() { $("table#mytable td").mouseover(function() { //The onmouseover code }).cl
这就是我需要的,也许有人能帮我 从下面的代码开始。它应该能满足你的需要
$(function() {
$("table#mytable td").mouseover(function() {
//The onmouseover code
}).click(function() {
//The onclick code
});
});
$("td").hover(function(){
$(this).css("background","#0000ff");
},
function(){
$(this).css("background","#ffffff");
});
你可以用