SyntaxFix
Write A Post
Hire A Developer
Questions
Just use;
$('#selectedDueDate').val(dateText).trigger('input');