alert(document.getElementById('<%=hdnUserId.ClientID %>').value); $(".save-job").hide(); $(".email-to").hide(); $(".share-link").hide(); /* Show function*/ $("#s-job1").click(function () { alert(document.getElementById('<%=hdnUserId.ClientID %>').value); $("#save-job1").hide(); $("#email-to1").hide(); $("#share-link1").hide(); var dNow = new Date(); var userid = $('<%=hdnUserId.ClientID %>').val(); var jobid = $(".head-links > h2").attr("id"); var saveddate = dNow.getFullYear() + '-' + (dNow.getMonth() + 1) + '-' + dNow.getDate() + ' ' + dNow.getHours() + ':' + dNow.getMinutes(); $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "JobResult.aspx/Insert_Data", data: "{'userid':'" + userid + "','jobid':'" + jobid + "','savedate':'" + savedate + "'}", dataType: "json", async: true, success: function (response) { $('<%=hdnUserId.ClientID %>').val(''); $(".head-links > h2").attr("id"); dNow.getFullYear() + '-' + (dNow.getMonth() + 1) + '-' + dNow.getDate() + ' ' + dNow.getHours() + ':' + dNow.getMinutes(); alert("Record saved successfully..!!"); }, error: function () { alert("Error"); } }); }); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)