Confused about how to access eda at this point $("#test").text("="+eda);
var eda=""; $(document).on('tap', '#linkbreakfast', function() { eda="breakfast";}); $(document).on('tap', '#linkdinner', function() { eda="dinner";}); $("#test").text("="+eda);
$("#test")should have been updated, but it is not updated? :) - Grundytext("="+eda);has already been completed by this time - Invision