Please select some product option before adding this product to your basket code example
Example: customize please select some product options before wordpress message
jQuery(document).ready(function($){
$('.single_add_to_cart_button').click(function(e){
if ($('#pa_size').val() == "") {
e.preventDefault();
alert("Please select size");
return false;
}
});
});