This question has already been answered:
- No access to variable 1 response
How can I transfer a value from one function to another? So far I have this:
$( "#sss" ).click(function() { var itog = '111'; }); $( "#ddd" ).click(function() { alert(itog); });
I do not understand why it does not work.