Use a class to select the inputs.
<input type="text" id="from-date" class="from_date" value="">
$(".from_date").datepicker({...});
Edit With the updates (through the comment on my answer) question I found the solution here.
You can use JQuery selectors in the altField to get to the input you want the date to be shown in.