select, input type=search

4488 단어 htmlhtml
<select name="workout" id="workout">
        {% for workout in met %}
            <option value="{{ workout.met }}">{{ workout.workout }}</option>
        {% endfor %}
        </select>
<input type="search" class="form-control" list="workout_list" id="workout" name="workout"
               value="" placeholder="활동을 선택해 주세요">
        <datalist id="workout_list">
            {% for workout in met %}
                <option value="{{ workout.workout }}" label="{{ workout.met }}"></option>
            {% endfor %}
        </datalist>
    

좋은 웹페이지 즐겨찾기