It can't be changed with PHP in a way that would trigger the onchange event, it'll always have to be triggered via Javascript.
Even then, changing the value of an input box programmatically won't actually trigger the onchange event...I know, weird. Wherever you're changing the value in your script, add:
Code:
document.getElementById('newInternalDate').onchange();
or if you're using jQuery:
Code:
$('#newInternalDate').change();
Demo: http://jsfiddle.net/pAkx8/
Uncomment the javascript line to see the alert message.
Bookmarks