<script type="text/javascript" src="/Style Library/functions/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#ctl00_m_g_3b1a3698_a0fa_4283_bf23_e830e012a848_ff21_ctl00_ctl00_TextField').val("1501");
});
$('#ctl00_m_g_3b1a3698_a0fa_4283_bf23_e830e012a848_ff161_ctl00_Lookup').change(function() {
var str = $('#ctl00_m_g_3b1a3698_a0fa_4283_bf23_e830e012a848_ff161_ctl00_Lookup: selected').text();
$('#ctl00_m_g_3b1a3698_a0fa_4283_bf23_e830e012a848_ff21_ctl00_ctl00_TextField').val(str);
})
.change();
</script>
The above code is working partially. ready function works but the change function does not trigger. Any guidance please. The above code I am using in SharePoint NewForm.aspx page.