javascript - Nested function and else condition not working -
i practicing js doing project , have run issues (again). upfront, explain want. have top level buttons nation names, on click pic fade container that. gets pic first array on line 1.this works well. however... when container visible, want click handler on "next" button right. handler 1 function (line 29-42) animates second div(.containsnext) changing opacity , rotate values. function calls function (next, should change target div background pics new array) , has if else statement. if condition works supposed to. else condition not run, if take out nested next() function. i think error (console doesn't return one) on next function lines 15 , 16, know lines "funny":-) and if statement in wrapper function not work either. how fix this? please make sure select france, italy or croatia buttons, or next button not respond @ (do not know why either). 1 more question on side, economical way store pics nations arrays selected/triggered next button? how impleme...