How can I call a function which is namespaced within a variable from html
<button onclick="hello()">Click me</button>
var app = app || {};
(function($) {
app.hello = function() {
console.log("hello");
}
})(app, jQuery);
Fiddle - http://jsfiddle.net/5XMYD/5/