I am using a content editor webpart and jQuery to disable fields in the edit form of a task. it works when I add the code directly in to the content editor webpart but when I add the js file to site assets and link it to the webpart it does not work. does anyone know what I am doing wrong? sorry for the simple question i am new to jQuery. here is my code:
<script src="/SiteAssets/jquery-3.1.0.min.js" type="text/javascript"> </script><script type="text/javascript">
$(function() {
$("input[Title='Task Name']").attr('disabled', 'disabled');
$("select[Title='Content Type']").attr('disabled', 'disabled');
});
</script>

