Hari B

Hari B

  • NA
  • 139
  • 68.4k

Jquery variable pass to HTML

Dec 11 2015 1:32 AM
Hello All
 
How can i pass Jquery variable to below HTML 
 
please find my code i highlight red color
 
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HomePage.master" Inherits="System.Web.Mvc.ViewPage<MVCECUDataTrackingSystem.ViewModels.ECUViewModel>" %>
         <asp:Content ID="Content3" ContentPlaceHolderID="NestedScripts" runat="server">
         <script type="text/javascript" language="javascript">
         $(document).ready(function () {
         $('#ECUSubmit').hide();
         });
         function fnECUAdd() {
         var dispid= document.getElementById("DispId");
         $("#ECUSubmit").dialog({
         height: 200,
         width: 450,
         modal: true,
         title: "Confirmation",
         buttons: {
         "Yes": function () {
         ValidationPB();
         },
         "No": function () {
            $(this).dialog("close");
            }
            }
            });
         }
         </script>
   </asp:Content>
 
 
  <asp:Content ID="Content1" ContentPlaceHolderID="nestedMasterContent" runat="server">
 
         <% using (Html.BeginForm("Clone", "ECU", FormMethod.Post, new { enctype = "multipart/form-data", id = "fmECU" }))
         {%>
         <%: Html.ValidationSummary(true) %>
         <div>
         <input type="button" value="Back" onclick="window.history.back()" />
         </div>
         <div id="ECUSubmit">
         <div class="editor-label">
         <%: "Do you want to Continue? disposition is:" +    dispid  %>
         </div>
         </div>
 </asp:Content>

Answers (2)