Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=84975
Postga havola
Akbarali [2384] [off]
Agarda o`zingizni saytingizga qo`ymoqchi bo`lsangiz
1 daqiqa 49 soniyadan keyin yozdi:
Jquery ajaxni bilmaganlar sal o`rganib olsa bo`ladi tepadagi kodni ko`rib. Yoqsa + yoqmasa - bosaveriylar
<!doctype html> <html lang="uz"> <head> <meta charset="UTF-8"> </head> <body> <script> $(document).on("click", "#shifbut", function() { var a = $("#shifr").val(); $.ajax({ method: "POST", url: "https://uzhackersw.uz/modul/shifr/shifr.php", data: { shifr: a} }) .done(function(a) { $("#shifrlangan").empty(), $("#shifr").val(""), $("#shifrlangan").append(a.success); }); }); $(document).on("click", "#deshifbut", function() { var a = $("#deshifr").val(); $.ajax({ method: "POST", url: "https://uzhackersw.uz/modul/shifr/deshifr.php", data: { deshifr: a} }) .done(function(a) { $("#deshifrlangan").empty(), $("#deshifr").val(""), $("#deshifrlangan").append(a.success); }); }); </script> <input type="text" id="shifr"> <input type="text" id="deshifr"> </body> </html>
1 daqiqa 49 soniyadan keyin yozdi:
Jquery ajaxni bilmaganlar sal o`rganib olsa bo`ladi tepadagi kodni ko`rib. Yoqsa + yoqmasa - bosaveriylar