Update another field when date selection is made using jQuery UI DatePicker

In this post, I will show you when using jQuery UI Datepicker how to update another field when date selection is made in another control.

jQuery UI Datepicker provides an options "altField", which can be used to set the selected date to another control. Set the ID of another control as value for this field and that's it.
//Code Starts
$(document).ready(function() {
     altField: "#txtDateOther"
​//Code Ends
See result below.

Feel free to contact me for any help related to jQuery, I will gladly help you.

Nothing shocks me, I'm a Software Engineer. And I am not young enough to know everything. I live in World Wide Web and from there take care of this website. This website communicates about my work, learning and experience. I believe life is short, and it is for loving, sharing, learning and connecting. So lets connect..