You can use some jquery to detect if a textbox has a value and otherwise disable it.
$('input:text').filter(function () { return $.trim($(this).val()) == ''; })
.attr("disabled", true);
If you are wanting to do it after the user enters a value (i.e. at runtime) then put the statement inside the "on change" event of the textboxes.
$('input:text]').on('change', function ()
{
$('input:text').filter(function () { return $.trim($(this).val()) == ''; })
.attr("disabled", true);
});