Make something live in JQuery
<p>I have in my Document Ready:</p>

<pre><code>$(document).ready(function () {       
    showAll();
    var av= $('#a').attr('value');
alert(av);                              &lt;-----**Debugging Value**
    if(av == 1) { 
         alert("1")  
     } else {
         alert("0")
     }
 });
</code></pre>

<p>The function showAll() calls a PHP and directly generates hidden inputs.</p>

<pre><code>&lt;input type='hidden' value='///automatically generated 1 or 0///'&gt;
</code></pre>

<p>My probelm right now is when I alert av at the <strong>Debugging Value</strong>, it is undefined. And I know this is because that section is not live. How can I make that section live automatically.
If i used live('click', etc etc....) then that works, but I am trying to make it load based on the conditional.</p>

<p>Thanks for your help.</p>

<p>EDIT:///</p>

<p>My showProf looks like this:</p>

<pre><code>xmlhttp.onreadystatechange=function()         {
      if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
        {
        document.getElementById("id_verified").innerHTML=xmlhttp.responseText;
        }
      }

xmlhttp.open("GET","showProf.php?i="+myi+"&amp;t=" + Math.random(),true);
xmlhttp.send();
</code></pre>
