score:0

There might be other issues (I didn't run your script), but one problem I can see clearly is the line "node.on("click", function ) which isn't mapping the click event to the click() function you wrote. You should change that to node.on("click", click).


Related Query

More Query from same tag