I have this code:
var one; $(\"#ma1\").click(function() { var one = 1; }) $(\"body\").click(function() {
Remove the var from inside the function.
var
$("#ma1").click(function() { one = 1; })