function commentadd(){ $("#wait").html("Gönderiliyor...").prop("disabled", true); $.ajax({ type: "POST", url: "inc/functions.php", data: $("#commentgonder").serialize(), success: function(cevap){
if (cevap=="do") { $("#wait").html("Gönderildi...").prop("disabled", true); swal({ title: "Yorumunuz eklendi!", icon: "success", button: "KAPAT", }); setTimeout('window.location.reload();', 500); }else if (cevap=="no"){ $("#wait").html("ONAYLA").prop("disabled", false); swal({ title: "Yorumunuz eklenirken bir hata oluştu!", icon: "error", button: "KAPAT", }); }else if (cevap=="bos"){ $("#wait").html("ONAYLA").prop("disabled", true); swal({ title: "Lütfen tüm alanları eksiksiz doldurun!", icon: "error", button: "KAPAT", }); } } }); } ajax html5 required
1
●27
- 28-11-2020, 21:32:36merhaba, altta ki kodda html5 required'i nasıl kullanabilirim?