I have a question to solve and I count on the help of you this code does not display the contents of the variable.
<li style="width:290px; border:#f00 0px solid;"><a href="#" class="link" data-text="<?php echo $n1['nick'];?>" >Pronto</a></li>
$(document).ready(function(){
$(".link").click(function(){
var nomes = $(this).text("data-text");
alert(nomes);
$('a[href=#]').attr('href', nome )
});
})