Think about these two lines of code:
$('.das_bonus').attr('class','.das_bonus1');
$('.das_bonus1').attr('name','bonus_stat1');
The first line selects an element with the class das_bonus and gives it the class.das_bonus1. literally, .das_bonus1. asin, <div class=".das_bonus1"></div>
Therefore, for the second line to work, the class selector would be .\\.das_bonus because "." is a reserved character in jquery and has to be escaped if used as a literal charater in a class name. Try changing those two lines of code to:
$('.das_bonus').attr('class','das_bonus1'); // removed "."
$('.das_bonus1').attr('name','bonus_stat1');
Edit: you could also chain those attr or combine them:
1: $('.das_bonus').attr('class','das_bonus1').attr('name','bonus_stat1');
2: $('.das_bonus').attr({'class':'das_bonus1','name':'bonus_stat1'});
-- Kevin
------------------------------------------------
http://www.tentonaxe.com