<script>
..........//some code//
//here s will be incresed in runtime
var oC2TD = oTR.insertCell(1);
oC2TD.innerHTML = "<input type=text class=text_box2 autocomplete=off name=txtCatgName"+s+" id=select"+s+"/>";
alert(document.getElementById('select'+s+''))
[B]//for above alert iam getting null
//but when i replace "select" with text box name like txtCatgName
//iam getting object and i replace in below line too, but, if i replace like that, iam not getting customarray data into object in the below line[/B]
var obj = actb(document.getElementById('select'+s+''),customarray);
</script>
i did this in my previous java program, its working, but in other prgrm it's not working