skip to Main Content

Query / Json How can I save Data and Heading name in my local storage? – Jquery

$(document).ready(function () { $(":button").click(function () { var btn = $(":button").val(); if (btn == 'Favoritisieren') $(":button").css("background-color", "red").prop('value', 'Favoritisiert'); var obj = {"Hed.1" : $("h1")}; var myJSON = JSON.stringify(obj); localStorage.setItem('myJSON'); else $(":button").css("background-color","blue").prop('value','Favoritisieren'); }); }); hey, I would like to save the filename…

VIEW QUESTION

Struggling to ASP.NET C# Ajax novice question – Jquery

I changed the code with a simple like these <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $('#RadioButtonYes').click(function () { var enterdata = document.getElementById("RadioButtonYes").value; $.ajax({ type: "GET", url: "radiobutton03ask.aspx/SyncData", contentType: "application/json charset=utf-8", dataType: "json", data: { 'data': enterdata }, success:…

VIEW QUESTION

Call ajax function after code behind validation ASP.NET – Jquery

Suppose I have a form: <form id="submitForm" runat="server"> <input type="text" id="name" name="name"> <input type="text" id="lastname" name="lastname"> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /> </form> Ajax: $.ajax({ type: 'POST', url: postUrl, data: $form.serialize(), success: function (data) { ... }, error: function (err)…

VIEW QUESTION
Back To Top
Search