๋ฐ์ํ
<script>
$(function() {
$("#time").timepicker({
step:30,
timeFormat: 'h:mm',
interval: 30,
minTime: '10',
maxTime: '06:00pm',
defaultTime: '11',
startTime: '10:00',
dynamic: false,
dropdown: true,
scrollbar: true
});
});
</script>
์ฐ๋ฆฌ BootStrap ํฌํ๋ฆฟ์ด ์์ ๋ฒ์ ์ด๋ผ์ timepicker๊ฐ ์ ์ฉ์ด ์๋๋ค.
๊ทธ๋์ ๊ทธ๋ฅ
<select name="time" id="time" class="form-control">
<option value="" style=color:black>์์ฝ ์๊ฐ ์ ํ</option>
<option value="10:00am" style=color:black>10:00am</option>
<option value="10:30am" style=color:black>10:30am</option>
<option value="11:00am" style=color:black>11:00am</option>
<option value="11:30am" style=color:black>11:30am</option>
<option value="12:00pm" style=color:black>12:00pm</option>
<option value="1:00pm" style=color:black>1:00pm</option>
<option value="2:00pm" style=color:black>2:00pm</option>
<option value="2:30pm" style=color:black>2:30pm</option>
<option value="3:00pm" style=color:black>3:00pm</option>
<option value="3:30pm" style=color:black>3:30pm</option>
<option value="4:00pm" style=color:black>4:00pm</option>
<option value="4:30pm" style=color:black>4:30pm</option>
<option value="5:00pm" style=color:black>5:00pm</option>
<option value="5:30pm" style=color:black>5:30pm</option>
<option value="6:00pm" style=color:black>6:00pm</option>
</select>
์์์ ํ๋ค!!!!!!!!!!!
<์คํ ๊ฒฐ๊ณผ>
โ
โ
๋ฐ์ํ
'ํ๋ก์ ํธ ๊ธฐ๋ก' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
2020/10/8 ํ๋ก์ ํธ ๊ธฐ๋ก (0) | 2021.02.15 |
---|---|
2020/10/5 ํ๋ก์ ํธ ๊ธฐ๋ก (0) | 2021.02.15 |
2020/9/9 ํ๋ก์ ํธ ๊ธฐ๋ก (0) | 2021.02.15 |
select๋ฌธ ํ ์คํธ์ฉ ์์ค (0) | 2021.02.15 |
์์ฝ ์ ํ ์ทจ์ ๊ธฐ๋ฅ ์ถ๊ฐ (0) | 2021.02.15 |
๋๊ธ