Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29408
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: displaying specified div in order based on clicking dynamically displayed dates with jquery/javascript |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <68141c33-727f-481c-9df0-3ca4e0471b7b@googlegroups.com> |
| Date | 2016-01-22 15:12 +0100 |
| Message-ID | <XnsA5979AB6B13A7eejj99@194.109.6.166> (permalink) |
aetagothno@gmail.com wrote on 21 Jan 2016 in comp.lang.javascript: > Here is my code: http://js.do/jane-d0e/80399 Oh please why all this JQuery, you will never learn Javascript that way. > I have predefined div's, each are going to contain different content and > styles. I want to have a user enter a start date, and then restrict the > end date so they can choose up to 7 days. I have been having a problem > implementing the date restriction, I try doing "+7d" for max Date but 7 days is aDate to aDate + 6 days, not + 7 days. var aDate = new Date(2016,0,22); var lastDate = new Date(aDate.getFullYear(), aDate.getMonth(), aDate.getDate() + 6); > for some reason it doesn't limit it correctly, it is always showing more > than the amount I specify. Stands to reason, see above. > [..] > What is the best way to go about achieving this? Silly presumption, that there must be a "best" way, unless perhaps it learning proper Javascript. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
displaying specified div in order based on clicking dynamically displayed dates with jquery/javascript aetagothno@gmail.com - 2016-01-20 19:29 -0800
Re: displaying specified div in order based on clicking dynamically displayed dates with jquery/javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-22 15:12 +0100
Re: displaying specified div in order based on clicking dynamically displayed dates with jquery/javascript Aleksandro <aleksandro@gmx.com> - 2016-01-22 11:54 -0300
Re: displaying specified div in order based on clicking dynamically displayed dates with jquery/javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-22 16:38 +0100
csiph-web