<tr> <td> <%= Html.Telerik().DropDownList() .Name("Action") .DataBinding(binding => binding.Ajax().Select("getAction", "Rule")) .ClientEvents(events => events .OnChange("CheckValueForInvestigator")) %> </td> <td><%=Html.Telerik().DropDownList().Name("ExecutionTypo").DataBinding(exebind=>exebind.Ajax().Select("getExecutionPattern","Rule")).ClientEvents(events=>events.OnChange("CheckValueForInvestigator"))%></td> <td style=""><%=Html.Telerik().DatePicker().Name("effdate").Format("dd/MM/yyyy").OpenOnFocus(true).Min(DateTime.Now).Value(DateTime.Now).HtmlAttributes(new { onkeypress = "return false", onpaste = "return false", Style = "width:167px;display: none " })%></td> <td style=""><%=Html.Telerik().DatePicker().Name("effTodate").Format("dd/MM/yyyy").OpenOnFocus(true).Min(DateTime.Now).HtmlAttributes(new { onkeypress = "return false", onpaste = "return false", Style = "width:167px;display: none " })%></td> </tr>
function CheckValueForInvestigator() { debugger; $("#investigatorName").hide(); $("#InformationReq").hide(); $("#ApproverRemarks").hide(); $("#lbleffdate").hide(); $("#effdate").hide(); $("#lbleffTodate").hide(); $("#effTodate").hide(); var value = $("#Action").val(); var exevalue = $("#ExecutionTypo").val(); if (value == "PI") { $("#investigatorName").show(); } if (value == "IR") { $("#InformationReq").show(); } if (value == "AF") { $("#ApproverRemarks").show(); } if (exevalue == "SpecificCases") { $("#lbleffdate").show(); $get("effdate").style.display = "show"; $("#lbleffTodate").show(); $get("effTodate").style.display = "show"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)