<form id="jvalidate" name="frmenquiry_package" class="" action="#" method="post" >
<input type="text" name="reg_number[]" id="reg_number_1" value="" class="jsrequired form-control" />
<input type="text" name="reg_number[]" id="reg_number_2" value="" class="jsrequired form-control"/>
<input type="text" name="reg_number[]" id="reg_number_3" value="" class="jsrequired form-control" />
<input name="submit" value="Submit" type="button" id="submit" onClick="javascript:funSave_contact_enquiry();">
</form>
function funSave_contact_enquiry(){
if ($('#jvalidate').valid()) {
$("#submit").attr('disabled',true);
alert('Success');
}
}
<script type="text/javascript" src="<?php echo base_url();?>site/js/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>site/js/additional.js"></script>
我有以下表格。我正在尝试使用jquery验证插件来验证输入。我已经尝试了一些代码,但无法正常工作。
当我单击为第一个输入#reg_number_1添加一个错误时,仅其他未突出显示的字段
答案 0 :(得分:0)
我只进行了测试所需的第一个输入,可以与cdn一起正常工作:
Error: No CUDA support (The library is compiled without CUDA support) in throw_no_cuda, file E:\OPEN_CV\opencv-master\modules\core\include\opencv2/core/private.cuda.hpp, line 107