There is code marked "This all remains the same" it it calling out only the first row of the side-by-side where you see #3~1 is referring to the first row of third column:
var yr = document.getElementsByName('QR~'+ qid + '#3~1')[0]
to apply the date range to both rows you need to do some updating that instructs the program to change both lists. This isn't written efficiently but it works:
var yrStart = document.getElementsByName('QR~'+ qid +'#3~1')[0];
var yrEnd = document.getElementsByName('QR~' + qid + '#3~2')[0];
//adjust existing code from yr to yrStart
var j=yearLast-1898;
for(i=j;i<151;i++){
yrStart.remove(j);
}
for(i=1; i<=yearFirst-1900; i++){
yrStart.remove(1);
}
//repeat this prior chunk of code and change from yrStart to yrEnd
var j=yearLast-1898;
for(i=j;i<151;i++){
yrEnd.remove(j);
}
for(i=1; i<=yearFirst-1900; i++){
yrEnd.remove(1);
}
How do I update the default item text (“Select a date”)? I’d like it to read something more like, “Select the date, month and year of your start date.”
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.