Using Javascript I achieved this successfully.
I place my code, so that you may alter if u want
$(function () {
var mappedField = $("#__MappedFields");
$("#frmCmpr").dialog({
height: 721,
width: 534,
top: 95,
left: 478,
show: "slide",
hide: "drop",
title: "Compare Module",
modal: true
});
$("#dynamicColumns,#radioDef,#radio").buttonset();
$(".button").button();
$("#btnMap").on("click", function (evn) {
var dbValue = $("input[name=radio]:checked"), fileValue = $("input[name=radioDef]:checked");
$("label[for=" + dbValue.attr("id") + "]").fadeOut({ duration: 1000 });
$("label[for=" + fileValue.attr("id") + "]").fadeOut({ duration: 1000 });
if (!dbValue.val() || !fileValue.val()) {
evn.preventDefault();
return;
}
var val = mappedField.val() + dbValue.val() + "|" + fileValue.val() + "|";
mappedField.val(val);
$("#mapResult").html
evn.preventDefault();
return;
$("<input>").attr({ "type": "hidden", "id": "hidden", "name": "__MappedFields" })
$("form").append("")
});
I hope this could help you!!!