What is the best way to pass the var full to function b. I don\'t want to use global variables. Is return the only option.
// define b function b(full) { alert(full); }
Actually, you aren't using global variables. You're defining them inside the JQuery anonymous function bound to the body element.