I have an application with info page and edit page
the info page shows the info.
in the edit page i have fields with selectbox etc etc

I want to use same code for both. So I tried

```
if($('#product').has('option'))
{
    console.log('hasSelect')
}
else{
    console.log('NOSELECTNO')
    }

```

in single page there is no option or select avaible 
but in the edit it is.

How can I make sure it will work (and why is this not working)

edit tried this 2:

```
var attr = $('#product div').attr('select');

if (typeof attr !== typeof undefined && attr !== false) {
    console.log("welmetselect")
}
else
{
    console.log("zonderselect")
}

```

EDIT: HTML

```
<div id= product>
    <div>some more divs</div>
    <div> in 1 of the div we have <select><option></option></select></div>
</div>

```

And html infopage

```
<div id= product>
    <div>only information</div>
    <div>only text </div>
</div>

```