I want to update autopopulate sharepoint list new form when user open it. I am using below script and only "name" is working. Name is used in place of title field.
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<link type="text/css" rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/ui-lightness/jquery-ui.css" />
<script type="text/javascript" src="//code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert('5');
$("input[Title='Name']").val('GDPR readiness @ IT');
alert('55');
$("input[title='Owner']").val('user name');
$("input[Title='Business owner']").val('fgfg');
$("input[Title='Project owner']").val('gfgfggds');
$("input[Title='Owner Organization']").val('Legal');
});
</script>
please let me know where I am doing wrong. Alert 55 is also not coming