functiondisplayData(postcode){var html ="Your constituency is ";$('#text').hide(); html += postcode.result.parliamentary_constituency_2024; html +=" and your local government ward is "; html += postcode.result.admin_ward;$('#text').html(html).fadeIn(300);}//ajax callfunctionpost(url){return $.ajax({url: url,success:function(){ },error:function(desc, err) {$('#text').html("Postcode not found - please try again"); } });}//uppercase String.prototype.strFirstUpper=function() {returnthis.charAt(0).toUpperCase() +this.slice(1);}
Put in your postcode to check if I am your MP
The below map also shows the constituency boundaries (and the local government wards within it).