I wonder if you can create dynamic selects on a page, identical to the free market signup.
Actually, I'm trying to create an integration exactly with their routine. I'm having difficulty with the categories. Depending on the type of the parent category, it is necessary to open a new select with the child categories and so on. There is no way to know the number of items or hierarchy.
I made the select from the main category, like this:
<div id="categoria">
<label>Categoria</label>
<select id="cmbCategoria" class="sub">
<option>Carregar Categoria</option>
</select>
<input type="button" value="Carregar Categoria" id="btnCategoria" class="botao"/>
</div>
As I researched, to include a select would look like this:
$("#categoria" ).append("<select class='sub' id="+id+"><option value>Subcategoria</option></select>");
Would it be any easier? Can I get the dynamic select id?