If i add element first then if i delete that later dynamically i should get an alert..can u help with idea how to do that?
<pre><code>var a1=document.getElementById("txtbx1");
        if(a1.value!="")
        {
        alert('Enter Name!!!');
        var lbl1=document.createElement("label");
        var lblTitle1=document.createElement("label");
        lblTitle1.innerHTML='Name:';
        label.appendChild(lblTitle1);
        var txt1=document.getElementById("txtbx1");
        var txt11=txt1.value;
        lbl1.innerHTML=txt11;       
        label.appendChild(lbl1);
        }
</code></pre>

<p>Here i am comparing if the value of that text box is NULL,but its wrong when its deleted from form by user..so please help that how to write condition to check its deletion..</p>
