我有一个问题,你能帮我吗?
我有以下代码...
$("#ativ").each(function(){
if(this.id){
this.id = "ativ[" + counter +"]";
ativ = $(this).attr("id");
alert(ativ);
}
});
// This part is ok!
// Now I want to capture the onChange event of this new renamed id
// How do I do????
$("#"+ativ).live("click",function() {
alert('Hello world!');
});
// This piece of code is not working!