@Html.RadioButtonFor(m => m.ApplicantType, "INDV", new { @checked = "checked" })<span>Individual</span> @Html.RadioButtonFor(m => m.ApplicantType, "ORG")<span>Organization</span> <script type="text/javascript"> $(document).ready(function () { $("#dvRepresented").hide(); $("#dvPromoter").hide(); $("#CustName").prop("disabled", true); $("#ApplicantName1").text("Applicant Name"); $("input:radio[name='ApplicantType']").change(function () { var Selectedvalue = $(this).val(); if (Selectedvalue == "INDV") { $("#Entity").val("1"); $("#Entity").prop("disabled", true); $("#CustName").prop("disabled", true); $("#ApplicantName").text("Applicant Name"); $("#lblDOB").text("DOB"); $("#lblDOBProof").text("DOB/Age Proof"); $("#trAge").show(); $("#dvRepresented").hide(); $("#divPromoterDetails").hide(); $("#FullName").show(); $("#Gender").show(); } else { $("#Entity").prop("disabled", false); $("#Entity").val("0"); $("#ApplicantName").text("Company Name"); $("#CustName").prop("disabled", false); $("#lblDOB").text("DOI"); $("#lblDOBProof").text("DOI Proof"); $("#trAge").hide(); $("#dvRepresented").show(); $("#divPromoterDetails").show(); $("#FullName").hide(); $("#Gender").hide(); } }); }); </script>
(document).ready(function ()
$("button").click(function(){ $("input").trigger("select"); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)