english francais italiano
This should do the job:
$(document).ready(function() { $('#langs li').click(function() { alert($(this).attr('data-val')); }); });
Have a look at the Docs