Helo,
I try to change element id and then do something with it.
This script changes id, but click not works with it, I dont understand why.
Thanks for help.
I try to change element id and then do something with it.
This script changes id, but click not works with it, I dont understand why.
Thanks for help.
Code:
$('#some').hover(
function(){
$(this).attr('id', 'new');
}
);
$('#new').click(
function(){
$(this).fadeTo('slow' , 0.2);
}
);