Toplam 1 adet sonuctan sayfa basi 1 ile 1 arasi kadar sonuc gösteriliyor
-
01.Şubat.2015, 22:52 #1Pro Üye
- Üyelik tarihi
- 06.Kasım.2014
- Mesajlar
- 405
JQUERY'DE Form Verilerini Temizlemek Nasıl Olur?
function clearForm(form) {
// iterate over all of the inputs for the form
// element that was passed in
$(':input', form).each(function() {
var type = this.type;
var tag = this.tagName.toLowerCase(); // normalize case
// it's ok to reset the value attr of text inputs,
// password inputs, and textareas
if (type == 'text' || type == 'password' || tag == 'textarea')
this.value = "";
// checkboxes and radios need to have their checked state cleared
// but should *not* have their 'value' changed
else if (type == 'checkbox' || type == 'radio')
this.checked = false;
// select elements need to have their 'selectedIndex' property set to -1
// (this works for both single and multiple select elements)
else if (tag == 'select')
this.selectedIndex = -1;
});
};
Form Verilerini Temizlemek İçin Kullanılan Koddur Kendinize Göre Düzenleyerek Kullanın !
Konu Bilgileri
Bu Konuya Gözatan Kullanıcılar
Şu anda 1 kullanıcı bu konuyu görüntülüyor. (0 kayıtlı ve 1 misafir)
Benzer Konular
-
PHP'DE IP Ban Nasıl Olur?
Konu Sahibi megatron Forum PHPCevap: 0Son Mesaj : 03.Ağustos.2015, 15:10 -
Jquery Animate Metodu ile Animasyonlar Oluşturma Nasıl Yapılır?
Konu Sahibi donjuanhose81 Forum PHPCevap: 0Son Mesaj : 17.Mart.2015, 22:51 -
C - C++ ile Windows Üzerinde Form Açma İşlemi Nasıl Yapılır?
Konu Sahibi megatron Forum Diğer DillerCevap: 0Son Mesaj : 16.Ocak.2015, 14:01 -
Jguery'de Form Verilerini Nasıl Temizlenir?
Konu Sahibi megatron Forum Diğer DillerCevap: 0Son Mesaj : 08.Ocak.2015, 07:21 -
PHP ile JQuery ve AJAX'ı Nasıl Kullanırsınız?
Konu Sahibi optimusprime Forum PHPCevap: 2Son Mesaj : 01.Aralık.2014, 21:28
Shopsocks5.com - Service Socks5...
Dün, 05:31 in Güncel Proxy Adresleri