Hello, I am trying to have two sliders in a question which automatically update one another. If I change the value of the first slider to x, the second slider should update to 500-x. My current code is:var currentQuestionInfo = this.getQuestionInfo()var postTag = currentQuestionInfo.postTagvar currentQuestionID = this.getQuestionInfo().QuestionID;var Sli1Old = 250;var Sli2Old = 250;var DomSli = 0;var respSli1 = document.getElementById(currentQuestionID + '~1~result');var respSli2 = document.getElementById(currentQuestionID + '~2~result'); Event.observe(document, 'mouseup',function(e){ var currentResponse1 = respSli1.value; var currentResponse2 = respSli2.value; if( currentResponse1 != Sli1Old ) { DomSli = 1; } else { DomSli = 2; } if( DomSli == 1) { try { var forceAns2 = 500 - currentResponse1; this.setChoiceValue(2, forceAns2); } catch(e) { } } var currentResponse1 = respSli1.value; var curre
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.