$(document).ready(function(){

$("form#postcode").bind("submit", function() { 
if($("input#postcode_entry").val().length>3) { return true } else {
alert("Please enter the first 4 digits for your postcode e.g. NG34"); return false;
}
});

});