xxxxxxxxxx
<form>
<select name='field{$i}type' class='form-control' required>
<option disabled value="" selected hidden>Type of Field</option>
<option value='text'>Text</option>
</select>
<button type="submit">SUBMIT</button>
</form>
Run code snippet