你好,我有一個osclass網站,我做了這個代碼需要進行一些自定義字段HTML5自定義屬性所需的消息不工作
<script type="text/javascript">
$("#countryId").attr('required', 'required');
$("#regionId").attr('required', 'required');
$("#city").attr('required', 'required');
$("#cityArea").attr('required', 'required');
$("#contactName").attr('required', 'required');
$("#price").attr('required', 'required');
</script>
請幫我更改默認的消息:「請填寫此場」
非常感謝您
HTTP的可能重複:// stackoverfl ow.com/questions/25628209/dynamically-change-required-for-html5-input-control – arthurakay
[設置自定義HTML5必填字段驗證消息]的可能重複(http://stackoverflow.com/questions/13798313/set-custom -html5-required-field-validation-message) – PeeHaa