Call a JS and using Ajax Callback, it can be achieved.
In below example, Call a function SelectCity, in this function we call a Action in controller that returns string value. We have a callback function here also when return then it go to callback function and we set the value in label.
function SelectCity(id) {
var cityid = $('#' + id).val();
$.ajax({ type: "POST", data: JSON.stringify({ CityId: cityid }), async: true, url: "/Enrolment/SateandPinCode", dataType: "json", contentType: "application/json; charset=utf-8", success: GetSateandPinCode });
}
function GetSateandPinCode(JO) {
if (JO.length > 0) {
$('#lblProposerState_' + 1).val(JO[0].BOStateName);
}
}
Use this, it will help you.