trying to determine IF a text element IS a label for a select

trying to determine IF a text element IS a label for a select

I need to be able to tell IF a text element is a label for a select ( if it is I will ignore it )

<div id="text28202" style="visibility: inherit;">
      <a id="a_1_3_10" href="javascript:radio28203id.click();" name="text28202anc"></a>
      <label id="label28203id" for="radio28203id">
            <p style="margin-left:0px;text-indent:0px;line-height:1.394;text-align:center;">
            <span class="text28202Font1">Strongly Agree </span>
            </p>
      </label>
</div>

In other words - How can I determine if text28202 is ALSO a label for radio28203id??

Thanks