datepicker의 값을 jqurey로 가져오고 싶어요 채택완료
</strong></p>
<p><strong><html></strong></p>
<pre>
<input type="text" name="r_use_sdate" id="sch_start_ymd" value="" required
class="frm_input required mini_input date " size="10" maxlength="50"
placeholder="시작 날짜"/></pre>
<p></html></p>
<p><script></p>
<pre>
const aa = document.membershipAddForm;
if (aa.r_use_sdate.value=="") {
alert("시작날짜를 입력하세요 ");
//aa.r_use_sdate.focus();
return false;
}</pre>
<p></script></p>
<p><strong>
form 데이터로 가져와서 값이 비어있다면 확인하고 다시 값을 입력해달라고 하고있는데
로직상 중간에 확인을 해줘야 하는 상황이 발생하여
</strong></p>
<p>let startDate = $("input[name='r_use_edate']").val();</p>
<p><strong>
위와같이 했는데 값이 나오지 않아서 질문올려요
datepicker 는 잘 나오고 있습니다.
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인