Javascript date-picker 관련 질문입니다. 정보
Javascript date-picker 관련 질문입니다.본문
제가 만드는 홈페이지에 투표 기한 설정란이 있습니다.
현재 기준으로 (1) 1년후, (2)6개월 후, (3)3개월 후, (4) 1개월 후, (5) 지정일자 의 5개 select option을 갖는 combo box 를 만들었습니다.
여기서
1년 후
6개월 후
3개월 후
1개월 후
지정일자 <= 바로 이 옆에 날자입력 date-picker의 달력그림이 뜨게 하려합니다.
Javascript가 실행하기 위한 복잡한 구문은 설명이 길어질 수 밖에 없으니 그것은 빼고 단지 달력 그림이 나오도록하는 skin구문만 가이드 부탁합니다. (그림화일 경로 설정[src= ]식 말고 Javascript달력이 '지정일자' 옵션 옆에 자연히 붙어 나오도록 하는거요)
관련 스킨구문
<td width="15%" bgcolor="white"><!-- change_open_date()를 새로 만들어야 할 듯 -->
<select style="width:100%;" name="vdate_sel" id="vdate_sel" onchange="change_open_date();">
<option name="vdate_change" value="<?=$open_date?>" checked>기한설정</option>
<option name="until_oneyear" value="<?=$until_oneyear?>">1년후</option>
<option name="until_sixmonth" value="<?=$until_sixmonth?>">6개월후</option>
<option name="until_threemonth" value="<?=$until_threemonth?>">3개월후</option>
<option name="until_onemonth" value="<?=$until_onemonth?>">1개월후</option>
<option name="until_nomidate" id="until_nomidate" value="<?=$until_nomidate?>">지정일자</option>
</select>
</td>
<td width="25%">
<input style="width:85%;" class="ed" name="open_date" id="open_date" readonly value="<?=$open_date?>">한
<input class="ed" name="open_text" id="open_text" readonly value="<?=$open_date?>" style="display:none; width:85%;">
</td>
현재 기준으로 (1) 1년후, (2)6개월 후, (3)3개월 후, (4) 1개월 후, (5) 지정일자 의 5개 select option을 갖는 combo box 를 만들었습니다.
여기서
1년 후
6개월 후
3개월 후
1개월 후
지정일자 <= 바로 이 옆에 날자입력 date-picker의 달력그림이 뜨게 하려합니다.
Javascript가 실행하기 위한 복잡한 구문은 설명이 길어질 수 밖에 없으니 그것은 빼고 단지 달력 그림이 나오도록하는 skin구문만 가이드 부탁합니다. (그림화일 경로 설정[src= ]식 말고 Javascript달력이 '지정일자' 옵션 옆에 자연히 붙어 나오도록 하는거요)
관련 스킨구문
<td width="15%" bgcolor="white"><!-- change_open_date()를 새로 만들어야 할 듯 -->
<select style="width:100%;" name="vdate_sel" id="vdate_sel" onchange="change_open_date();">
<option name="vdate_change" value="<?=$open_date?>" checked>기한설정</option>
<option name="until_oneyear" value="<?=$until_oneyear?>">1년후</option>
<option name="until_sixmonth" value="<?=$until_sixmonth?>">6개월후</option>
<option name="until_threemonth" value="<?=$until_threemonth?>">3개월후</option>
<option name="until_onemonth" value="<?=$until_onemonth?>">1개월후</option>
<option name="until_nomidate" id="until_nomidate" value="<?=$until_nomidate?>">지정일자</option>
</select>
</td>
<td width="25%">
<input style="width:85%;" class="ed" name="open_date" id="open_date" readonly value="<?=$open_date?>">한
<input class="ed" name="open_text" id="open_text" readonly value="<?=$open_date?>" style="display:none; width:85%;">
</td>
댓글 전체