trigger function on click
<p>i am trying to launch my function by click and keep failing... :(
this is my function:</p>

<pre><code>ntd.refresh_meatlist= function(){
var $tasks = $('#meating_list'),i;
$tasks.empty();

if (ntd.list.length) {

    $tasks.append('&lt;li data-role="list-divider"&gt;Meating&amp;#39;s&lt;/li&gt;');
    for (var i=0;i&lt;ntd.list.length;i++){
    var li = '&lt;li&gt;&lt;a data-rel="dialog" href="#confirm" data-transition="flip"&gt;' +      ntd.list[i].meating + '&lt;/a&gt;&lt;/li&gt;'
    $tasks.append(li);
    } 
}

$tasks.append('&lt;li data-role="list-divider"&gt;Add Meating&lt;/li&gt;');

$tasks.listview('refresh');

localStorage.ntd_list = JSON.stringify(ntd.list || []);
};
</code></pre>

<p>this is how i try to trigger it:</p>

<pre><code>$("#addmeatingBtn").click(function() {
ntd.refresh_meatlist();
});
</code></pre>

<p>what is missing?? thanks :)</p>
