Toplam 1 adet sonuctan sayfa basi 1 ile 1 arasi kadar sonuc gösteriliyor
Konulanmış Görüntüleme
-
08.Ocak.2015, 07:21 #1
Jguery'de Form Verilerini Nasıl Temizlenir?
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;
});
};
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
-
JQUERY'DE Form Verilerini Temizlemek Nasıl Olur?
Konu Sahibi donjuanhose81 Forum PHPCevap: 0Son Mesaj : 01.Şubat.2015, 22:52 -
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 -
Tarayıcılarınıza Bulaşan Virüsler Nasıl Temizlenir ?
Konu Sahibi megatron Forum GüvenlikCevap: 0Son Mesaj : 05.Ocak.2015, 23:15 -
Adobe Dreamweaver Mysql Veri Tabanı Verilerini Silme
Konu Sahibi optimusprime Forum MySQLCevap: 0Son Mesaj : 11.Aralık.2014, 10:06 -
Facebook Virüsü Nasıl Temizlenir?
Konu Sahibi WeBMasteR Forum GüvenlikCevap: 0Son Mesaj : 06.Nisan.2014, 22:26
Shopsocks5 - Service Socks5 Cheap...
11.Mayıs.2024, 15:00 in Güvenlik