Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、jquery で 'required=""' 属性を削除したいと思います。
<input type="text" id="edit-submitted-first-name" name="submitted[first_name]" value="" size="30" maxlength="128" required="" >
ただ:
$('#edit-submitted-first-name').removeAttr('required');
さらに読みたい場合は、こちらをご覧ください。
document.querySelector('#edit-submitted-first-name').required = false;
$('#edit-submitted-first-name').removeAttr('required');