jQuey Bug selector with Chrome and FireFox

jQuey Bug selector with Chrome and FireFox

Hi :) ( first, sorry for my poor english... :) i'm french user and try to write my best...)

Here's my HTML code :
...
<script type="text/javascript" SRC="../_inc/jquery.js"></script>
<script type="text/javascript" SRC="./_inc/jqtemplate.js"></script>
...
<body>
<div class="cdrGlobal">
<div class="cdrHeader">header </div>
<div class="cdrMain">
<div class="Colonne">colonne 1 </div>
<div class="Colonne">colonne 2 </div>
<div class="Colonne">colonne 3 </div>
<div class="Colonne">colonne 4 </div>
main
</div>
<div class="cdrFooter">footer </div>
</div>
</body></html>

And here the part of my jQuery's causing the bug with Chrome 5.0.375.126 (last version) and Firefox 3.6.8 (last version). Theres is no problem with Internet Explorer 8 !!
This code is extract from the file  ./_inc/jqtemplate.js . And the other lines of code in this script are ok...

$(document).ready(function(){
fTPL_Init();

// Ce qui suit bug avec chrome. Le selector retourne 0 element !!
alert($('div[class^="cdr"').length);    // this line is for testing code only.
                  // There is big bug here !!!!!.
                  // The code alert returns 0
                  // and the following code can't operate...
$('div[class^="cdr"').not('.cdrGlobal').append('<p>Contenu de paragraphe de test Contenu de paragraphe de test Contenu de paragraphe de test Contenu de paragraphe de test Contenu de paragraphe de test</p>').append('<blockquote class="cdrInfo">cdrInfo</blockquote>');

function fTPL_Init() {
// Identification elements class cdrGlobal
$('.cdrGlobal').attr('id', function(i){ return 'cdrGlobal-' + i; });
// Identification elements contenus dans un class cdrGlobal
$('div[class^="cdr"]').not($('.cdrGlobal')).attr('id', function(i){
alert($('div[class^="cdr"]').length);   // this line is for testing code only.
                  // There is no bug here.
                  // The script run 4 times, and each time the code alert returns 4
return $(this).attr('className') + '-' + $(this).parent().attr('id').split('-')[1]; 
}).css('width',function(){ return '1200px'; });
$('.Colonne').attr('id', function(i){
return $(this).attr('className').split(' ')[0] + $(this).parent().attr('id').split('-')[1] + '-' + i; 
})
}

});

I hope my explications are clear enough.

Any idea aboutt his ?

Thanks for all help