We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我試過了data-required=true 但好像沒什麼效果 請問是不是我驗證地方錯誤了呢?
<div class="col-sm-3"> <div data-role="district" data-name="selArea" data-value="" data-style="form-control zip-group zip-state" data-required="true" class="inline twziptwzip s2 has-feedback"> </div> <span class="glyphicon form-control-feedback" aria-hidden="true"></span> <div class="help-block with-errors"></div> </div> <div class="col-sm-3"> <div data-role="zipcode" data-name="zipcode" data-value="160" data-style="form-control" class="twziptwzip has-feedback"> </div> <span class="glyphicon form-control-feedback" aria-hidden="true"></span> <div class="help-block with-errors"></div> </div> </div>
The text was updated successfully, but these errors were encountered:
我記得目前是沒有支援 data-required 的。 現階段大概只能利用 js 去動態加入該屬性了:
$(selector).find('input').attr('required', true).prop('required', true);
Sorry, something went wrong.
No branches or pull requests
我試過了data-required=true
但好像沒什麼效果
請問是不是我驗證地方錯誤了呢?
The text was updated successfully, but these errors were encountered: