hi, I create a list from data in db, then I would get the text in the
list by click on mouse
- for(var i in data){
- reparto = data[i];
- $('#list
ul').append('<li class="list-group-item">'+reparto[1]+'</li>');
-
- }
- }
- });
-
- $('#list li').click(function() {
- alert( $(this).text() );
- });
But when
I click on a
element of the list don't catch it, if I write in html code an
element in the list I can catch
why?
thanks a lot