Get anchor inside td
<p>I use only JavaScript.</p>

<p>I have the following code inside a function:</p>

<pre><code>  siblings=getSiblings(obj);

        for(var i=0;i&lt;siblings.length;i++)
        {
            if(siblings[i].getAttribute('f')=='ytw')
            {
                ytw=siblings[i].innerHTML;
                alert(ytw);
            }
            else if(siblings[i].getAttribute('f')=='ol')
            {
                orderId=siblings[i].innerHTML
                alert(orderId);
            }
        }   
</code></pre>

<p><code>siblings[i].innerHTML</code> returns either an input tag with some VALUE or an anchor tag with some VALUE.</p>

<p>I want to get this value in either case.</p>
