-1

I have a question about a conference quotation form that I am building. Once the user enters various information such as the conference date, number of delegates etc, I need other options to appear dependant on the duration of the conference. ie. If the user inputs dates showing that the conference will last 3 days - then 3 "sections" needs to appear for each day of the conference with inputs regarding meals for that particular day, etc.

What route could I take to accomplish this?

I am struggling to explain - so If i am not clear, please tell me and I will try to explain better

thank you

4

1 回答 1

0

我相信你会在这里找到一些东西:jquery datepicker difference

如果您的天数有所不同,您可以简单地添加一个 for 循环

for(var i=0;i<differenceInDays;i++){
    $('#days').append('<input name="day'+i+'"/>');
}
于 2012-06-12T20:26:42.410 回答