Afghanistan
You probably wanted .val() not .attr('prefix'), to obtain selected value of .
.val()
.attr('prefix')
$(document).ready(function() { $('#Nazione').change(function(){ alert( $(this).find("option:selected").attr('prefix') ); alert( $(this).val('prefix') ); }); });