get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
thecodingaviator on master
remove A (#31157) (compare)
:star: 545 | @hansinla | http://www.freecodecamp.com/hansinla
:star: 85 | @tanasic | http://www.freecodecamp.com/tanasic
:star: 1076 | @saintpeter | http://www.freecodecamp.com/saintpeter
:star: 374 | @camperbot | http://www.freecodecamp.com/camperbot
function sumFibs(num) {
return num;
}
sumFibs(4);
Return the sum of all odd Fibonacci numbers up to and including the passed number if it is a Fibonacci number.
more info:
bf details
|bf links
|hint
I have a jQuery question. I am currently doing a static todo app, and for dynamically generated checkboxes, the .change()
event does not work, as opposed to a pre-existing checkbox (one that was part of the original DOM) where it would work. Why is that?
What I am trying to do is, if the user changes/clicks on the checkbox, a class would be toggled on its sibling <label>
. It doesn’t work for injected checkboxes. How can I go about fixing this?
function yourTurn() {
var currentPosition = 0;
var pressTracker = 0;
$('.gameButton').mousedown(function() {
yourNum = parseInt(this.id)
lightPressed(yourNum);
yourSeq[currentPosition] = yourNum;
})
$('.gameButton').mouseup(function() {
checkLight(currentPosition);
currentPosition++;
console.log(currentPosition, yourSeq.length);
})
if (currentPosition == 1) {
console.log("done");
return;
}
}
:star: 379 | @moigithub | http://www.freecodecamp.com/moigithub