타임리프에서 셀렉트 고정시키기

이태규·2022년 5월 11일
0

spring

목록 보기
60/60
<select name="select" class="form-select" aria-label="Default select example">
              <option value="1" th:selected="${select}=='1'">아이디</option>
              <option value="1" th:selected="${select}=='2'">닉네임</option>
            </select>

select는 컨트롤러에서 받아왔음

profile
한 걸음씩 나아가자

0개의 댓글