Very simple, just trigger the blur
event on the input elements when the dialog box opens.
$("#dialog").dialog({
open: function(event, ui) {
$("input").blur();
}
});
Check it out here
Solution with datepicker
NOTE: For more in-depth solution to this problem, read this answer too.