I have an element that is repetitive. I tried to use it more than once but couldn't. I end up doing multiple times.
$(function(){
$('#schstart1').datepicker({
format: 'mm-dd-yyyy',
startDate: '01-01-1900'
});
$('#schend1').datepicker({
format: 'mm-dd-yyyy',
startDate: '01-01-1900'
});
$('#schstart2').datepicker({
format: 'mm-dd-yyyy',
startDate: '01-01-1900'
});
....
...
..
Is there anyway i can define #schstart only and reuse many times?