Click here to Skip to main content
15,887,485 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionHow do I choose DIV based contents in a page with a dropdown list Pin
Member 118266027-Dec-15 11:34
Member 118266027-Dec-15 11:34 
AnswerRe: How do I choose DIV based contents in a page with a dropdown list Pin
W Balboos, GHB15-Dec-15 6:53
W Balboos, GHB15-Dec-15 6:53 
AnswerRe: How do I choose DIV based contents in a page with a dropdown list Pin
Cai Yang17-Dec-15 23:38
Cai Yang17-Dec-15 23:38 
Questionfor source code Pin
Member 121783931-Dec-15 0:59
Member 121783931-Dec-15 0:59 
AnswerRe: for source code Pin
Eddy Vluggen1-Dec-15 1:27
professionalEddy Vluggen1-Dec-15 1:27 
AnswerRe: for source code Pin
ZurdoDev16-Dec-15 10:04
professionalZurdoDev16-Dec-15 10:04 
QuestionSimple, Simple Javascript question... Pin
TenmanS1427-Nov-15 4:39
TenmanS1427-Nov-15 4:39 
AnswerRe: Simple, Simple Javascript question... Pin
F-ES Sitecore29-Nov-15 22:16
professionalF-ES Sitecore29-Nov-15 22:16 
It's neither here nor there if you store the numbers in variables or use them in-line, however your choice of variable names is definitely against good practice. Call your variables things like previousYear, thisYear and nextYear.

If you're looking to try new things you could also use a "for" loop to write your links rather than doing it as you are. That way you can alter how many years back\forward you display rather than having to show four.
GeneralRe: Simple, Simple Javascript question... Pin
TenmanS1414-Dec-15 22:21
TenmanS1414-Dec-15 22:21 
QuestionDisplaying specific data from a CSV file Pin
Emre Testici25-Nov-15 21:44
Emre Testici25-Nov-15 21:44 
QuestionThe problem of JavaScript position Pin
Ted.K-121-Nov-15 21:28
Ted.K-121-Nov-15 21:28 
AnswerRe: The problem of JavaScript position Pin
Peter Leow21-Nov-15 21:55
professionalPeter Leow21-Nov-15 21:55 
AnswerRe: The problem of JavaScript position Pin
Cai Yang17-Dec-15 23:42
Cai Yang17-Dec-15 23:42 
Questionsocial media buttons block page on IE? Pin
V.17-Nov-15 21:18
professionalV.17-Nov-15 21:18 
QuestionHow to create a number field site column in javascript Pin
Member 1188942312-Nov-15 19:54
Member 1188942312-Nov-15 19:54 
QuestionRe: How to create a number field site column in javascript Pin
ZurdoDev23-Nov-15 3:03
professionalZurdoDev23-Nov-15 3:03 
Questionregex, get the last dollar amount if 2 are present Pin
jkirkerx12-Nov-15 8:51
professionaljkirkerx12-Nov-15 8:51 
AnswerRe: regex, get the last dollar amount if 2 are present [Solved] Pin
jkirkerx12-Nov-15 9:35
professionaljkirkerx12-Nov-15 9:35 
QuestionJavaScript Tour guide Pin
Member 1198488311-Nov-15 21:14
Member 1198488311-Nov-15 21:14 
AnswerRe: JavaScript Tour guide Pin
Richard MacCutchan11-Nov-15 21:19
mveRichard MacCutchan11-Nov-15 21:19 
GeneralRe: JavaScript Tour guide Pin
Member 1198488311-Nov-15 21:33
Member 1198488311-Nov-15 21:33 
AnswerRe: JavaScript Tour guide Pin
Richard Deeming12-Nov-15 2:13
mveRichard Deeming12-Nov-15 2:13 
QuestionJava 2D Array - User Input Pin
Frankie124510-Nov-15 13:02
Frankie124510-Nov-15 13:02 
QuestionRe: Java 2D Array - User Input Pin
Richard MacCutchan10-Nov-15 23:09
mveRichard MacCutchan10-Nov-15 23:09 
QuestionHow can I collect news from differnt sites in one html page Pin
abo sohaib9-Nov-15 20:18
abo sohaib9-Nov-15 20:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.