get sibling that has id
<p>So I have the following structure:</p>

<pre><code>&lt;div id="some id"&gt;
     &lt;div&gt;
          &lt;input id="some other id" ....&gt;
          .....bunch of other inputs with no id field....
          &lt;select onclick="findSiblingWithId()"&gt;             
     &lt;/div&gt;
     &lt;div&gt;
          &lt;input id="some other id" ....&gt;
          .....bunch of other inputs with no id field....
          &lt;select onclick="findSiblingWithId()"&gt;             
     &lt;/div&gt;
     &lt;div&gt;
          &lt;input id="some other id" ....&gt;
          .....bunch of other inputs with no id field....
          &lt;select onclick="findSiblingWithId()"&gt;             
     &lt;/div&gt;
</code></pre>

<p>So in my findSiblingWithId i don't know the id I'm looking for, all I know is that for the other components in the same div, only one will have an id. How can I get that ? </p>

<p>Edit: 
Since it seems I didnt explain well enough I'll try to add more info. So I want for example when the select component changes (here it could be a button or anything, it doesnt matter) to get the corresponding <code>&lt;input id="some other id" ..&gt;</code> from the same div.</p>

<p>Like I tried to explain above, I have one huge div, the <code>&lt;div id="some id"&gt;</code>, now this contains a number of smaller <code>&lt;div&gt;</code> without ids. </p>

<p>Each of these smaller divs will have ONE inputfield with an ID and a bunch of other without an ID. Now on an action, doesn't matter if a button click or whatever, from a component located IN THE SAME div (I thought the correct work would be 'sibling') is there a way I can find the input that has an ID attribute?</p>

<p>Regards,
Bogdan</p>
