getting dynamic id name with jQuery
<p>In this this jQuery script I'd like to grab the id for <code>$("#rowDate1")</code> dynamically:</p>

<pre><code>&lt;script&gt;
    $(function() {
       $("#rowDate1").click(function() {
           var thetext = $(this).html();
           $(this).html('&lt;input type="text" name="edittext" id="edittext" value="'+thetext+'" /&gt;');
       });
    });
&lt;/script&gt;
</code></pre>

<p>I'm making an inline editable table, and I only want to allow the user to click on <code>&lt;td&gt;</code>'s with an id. How can I do this and only allow the <code>&lt;td&gt;</code> ids to be clickable?</p>

<p>EDIT - HTML added:</p>

<pre><code>&lt;td id="rowDate1"&gt;09/10/12 - 09/14/12&lt;/td&gt;
</code></pre>
