$(function(){
var obj = $('.xxbgcons>div');
obj.each(function(i){
$(this).attr('id',"tab1_div_"+i);
})
});
$($("#myidg a")[0]).html("333");
$($("#myidg a")[1]).html("444");
请教我要将
$($("#myidg a")[0]).html("333");
$($("#myidg a")[1]).html("444");
里面的#myidg换成上面的这个不断自加tab1_div这个id,应该怎么写?
$($("#myidg a")[0]).html("333");
-->
$("#myidg a").eq(0).html("333");