$(function() { $('#postNummer').focus(); $('#postNummer').on('keyup', function() { getCityFromZipCode('#postNummer', '#byNavn'); }); });