das Ereignis click LENKER

Mit LENKER und OpenDatabase ich habe kleine problem. Wenn Sie auf einen link klicken und nichts passiert

mein JS.

  db.transaction(function (tx) {
  tx.executeSql('SELECT * FROM exhibition', [], function (tx, results) {
  var source = document.querySelector("#exhibition-template").innerHTML;
  var data = [];
  template = Handlebars.compile(source);

  for(var i=0;i < results.rows.length; i++) {
      data.push(results.rows.item(i));
  }
  var context = (data);
  if (language == 'pl')
  {
    var html = template({o:context,language_pl:true});
  }else{
    var html = template({o:context,language_en:true});
  }
  document.querySelector("#template").innerHTML = html;  

 }, null);

$(".exl").on("click", function(){
  alert('event click!');
});

});

und meine html -

  {{#each o}}
  <a href='' class='exl'>{{name_pl}}</a>
  {{/each}}
InformationsquelleAutor Piotr Stanek | 2013-04-06
Schreibe einen Kommentar