title: Extract Element information from Input tag in a Webpage
body: <p>I have an Excel Macro successfully writing to a website using <code>.getElementByID("TBPRODDESC#####").value</code> where ##### is a unique ID for the input box, however there are certain instances when the <code>&lt;input&gt;</code> is disabled / stock value is zero or below the number being entered.  Whilst the macro continues without error it would be useful to identify when this occurs.</p>
  
  <p>The <code>&lt;input&gt;</code> has the tag "InStock" within the input box however as there are multiple instances of this tag within many different input ID's, I am unsure how to extract this information for a specific Input ID</p>
  
  <p>Below is an example of two of the <code>&lt;input&gt;</code> that i am working with</p>
  
  <p>(1)
  <code>&lt;INPUT disabled id=TBPRODDESC11111 value=0 name=TBPRODDESC11111 InStock="0"&gt;"</code></p>
  
  <ul>
  <li>looking to identify that TBPRODDESC11111 is disabled or TBPRODDESC11111 / "InStock" = 0</li>
  </ul>
  
  <p>(2)
  <code>&lt;INPUT id=TBPRODDESC33333 value=0 name=TBPRODDESC33333 InStock="5"&gt;</code></p>
  
  <ul>
  <li>looking to identify that TBPRODDESC33333 / "InStock" = 5</li>
  </ul>
  
  <p>On the page there are approximately 100 Input elements each with a unique Input ID.</p>
  
  <p>I can write to the input using
  IE.Document.getElementById("TBPRODDESC11111").Value = Cells(3, "C").Value</p>
  
  <p>but using 
  Stkflag = IE.Document.getElementByTagID("InStock").Value always give 0 as I am unsure how to specify which ID InStock tag I need</p>
  
  <p>Any help understanding how to achieve this check would be greatly appreciated.</p>