javascript, dynamic id for table:how to recognize?
<p>In my application i use a framework that generates a table with the id of the cells at Run-Time in ascending order.
So that i have "ElementX1X1" for row1 and column1, "ElementX1X2" for row1 and column2 etcetc...
The HTML structure generated will be:</p>

<pre><code>&lt;tr&gt;
&lt;td class="my_msg" align="left"&gt;
&lt;id="ElementX1X1"&gt;
</code></pre>

<p>what i can set is the class(my_msg) and the content of the cell(of the table).
I want simply make:</p>

<pre><code>var test=document.getElementById("ElementX1X1");
test.onclick=function();
</code></pre>

<p>but i'm not able to recognize the cell... 
i want to make getElementById only if it is in the class "my_msg" or only if it has a certain content(as i said the only two things i can set)...
Anyone has any idea on how i can solve the problem?!
Thanks in advance!</p>
