助けてください...関数が機能していません。私のコードがあります:
var tel=99, nome='c';
$('#listaCont').append("<li class='list-item-single-line selectable'><a href='#' onclick='pegarContactos( tel, nome)'> <h3>Célio Garcia</h3></a></li>");
そして私の機能:
function pegarContactos (tel, nome){
tel, nome,
alert(nome);
}
Uncaught ReferenceError: pegarContactos が定義されていません
どこが間違っていますか????