jQuery - how can I find the element with a certain id?
<p>I have a table and each of its td has a unique id that corresponds to some time intervals (0800 til 0830... 0830 til 0900 and so on). And I have an input text where the user will type the time intervals the they want to block. And if they type an interval that doesn't exist in my table, in other words, if they type an interval that doesn't correspond to any of my td's id's, I want to show an alert saying something like "this interval is not available for blocking".</p>

<p>But, I'm having difficult in find this id.
I'm doing this:</p>

<pre><code>var horaInicial = $("#horaInicial").val().split(':')[0] + $("#horaInicial").val().split(':')[1]; // this is remover the ":" from a formatted hour

var verificaHorario = $("#tbIntervalos").find("td").attr("id", horaInicial);
</code></pre>

<p>But this "verificaHorario" is actually setting all my td's to this horaInicial id.</p>

<p>So, how can I find an id in my table and if it doesn't exist show some alert.</p>

<p>thanks!!</p>
