2015년 1월 1일 목요일

[AngularJS] Re: Date Validation using Angularjs.

Here is my code please see it and let me know how to set only min attribute to Product Purchase Date.

<label for="PPurDate">Printer Purchase Date<span class="mycolon">:</span> </label>
<input type="date"  name="PPurDate" id="PPurDate"  /> <br><br>


<label for="Wend">Warranty End Date<span class="mycolon">:</span></label>
<input type="date" min="?" name="Wend" id="Wend" /><br><br />

Because what I want is that when a user selects "Printer Purchase Date" as 23-01-2014 then "min" attribute for Warranty End Date should be set as selected "Printer Purchase Date". Because you can't have Warranty End Date lesser than "Printer Purchase Date". 


댓글 없음:

댓글 쓰기