Hi,
I'm using the following code to dynamically add checkboxes to a form: (Using Jquery ):

In the HTML code:
Code:
<ul id="list">
</ul>
In the javascript:

Code:
for (x=0;x < words.length; x++)
    {
       //Some code here
        $("#list").append("<li><input type='text' id='word_" + y + "' value='" + words[x] + "'> <input type='checkbox' name='test' id='sep_" + y + "'>");
    }
This would generate HTML code similar to this:

Code:
<ul id="list">
<li>
<input type='text' id='word_1' value='something'>
<input type='checkbox' name='test' id='sep_1'>
</li>

<li>
<input type='text' id='word_2' value='something'>
<input type='checkbox' name='test' id='sep_2'>
</li>
</ul>
That works fine. Then I use the following code to see if a particular checkbox was selected:

Code:
for (x=1; x <= keywordCount; x++)
    {
        //Some code here
        var temp=document.getElementById('sep_' + x);
        seps=(temp.checked) ? 'checked' : '';
   }
The above code works fine in Mozilla, however in IE, as soon as it gets to the (temp.checked) line, it throws up the following error:

Line: 91
Char: 3
Error: Object doesn't support this property or method
I'm using IE 6 by the way.
Any ideas?