欧芹lib不在此向导上显示验证消息

时间:2018-07-06 11:49:09

标签: javascript jquery html css parsley.js

<form id="form1" action="" method="POST" data-parsley-validate="true" name="form-wizard">
    <div class="wizard-step-1">
        <fieldset>
            <legend class="pull-left width-full">Search Slot </legend>
            <!-- begin row -->
            <div class="row">
                <div class="col-md-3">
                    <div class="form-group block1">
                        <label>Date *</label>
                        <input type="text" name="dtpSearch" id="dtpSearch" placeholder="DD-MM-YYYY" class="form-control datepicker-autoClose1" data-parsley-group="wizard-step-1" required  />
                    </div>
                </div>
                <div class="col-md-2">
                    <div class="form-group">
                        <label>Start Time *</label>
                        <div class="input-group date 24hourtime" >
    	                    <input type="text" class="form-control" id="txtFromTime" name="txtFromTime" value="00:00 AM" placeholder="Enter StartTime" data-type="alphanum"  data-parsley-required="true" />
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-time"></span>
                            </span>
                        </div>
   	                </div>
                </div>
                <div class="col-md-2">
                    <div class="form-group">
                        <label>End Time</label>
                        <div class="input-group date 24hourtime" >
    	                    <input type="text" class="form-control" id="txtToTime" name="txtToTime" value="23:59 PM" placeholder="Enter EndTime" data-type="alphanum"  data-parsley-required="true" />
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-time"></span>
                            </span>
   	                    </div>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="form-group">
                        <label>Court Type</label>
                        <select class="form-control" id="ddlCtype" name="ddlCtype" data-parsley-required="true">
                            <option value="">Any</option>
                            <option value="1">Concrete</option>
                            <option value="2">Clay</option>
                            <option value="3">Grass</option>
                            <option value="4">Sand</option>
                        </select>
                    </div>
                </div>
                <div class="col-md-2">
                    <div class="form-group">
                        <label>Roofed *</label>
                    <div>
                        <label class="radio-inline"><input type="radio" name="optRoofed" checked data-parsley-validate="false" value="0">No</label>
                        <label class="radio-inline"><input type="radio" name="optRoofed" data-parsley-validate="false" value="1">Yes</label>
                    </div>
                </div>										
            </div>
        </div>
        <!-- end row -->
    </fieldset>
</div>
<!-- end wizard step-1 -->
       

我正在此向导上使用此lib。为了清楚起见,我删除了一些向导步骤。现在,在我没有使用此向导的其他网页上,可以在webapp上正常工作。为什么在此向导上不起作用? 注意:为清晰起见,跳过了一些向导步骤。

0 个答案:

没有答案