0
如何使jq-ui datepicker在jquery驗證引擎旁工作?使用jQuery驗證和jquery-ui datepicker
起初,我的datepicker工作之前,我把驗證。現在驗證器正在工作,但日期選擇器不是。
//datepciker
$(function() {
$("#datepicker").datepicker({ changeYear:true,changeMonth:true });
});
//jqueryValidation
$(document).ready(function(){
$("#form").validationEngine();
});
<fieldset>
<form id="form" method="post" action="post.php">
<table>
<tr>
<td>NIP*</td>
<td><input class="validate[required,custom[onlyNumberSp]"
id="nip" maxlength="18" name="nip" size="20" type="text"></td>
</tr>
<tr>
<td>TMT*</td>
<td><input id="datepicker" name="tmt" type="text"></td>
</tr>
</table>
</form>
</fieldset>