Kangkam

Kamis, Juli 14, 2011

JQuery : Autocomplete Force Input

case : you use jquery autocomplete to replace an old style drop down menu and you want to force user to choose at least one of these input option.
solution : use a "mustMatch";

        $().ready(function() {
            $("#kategori").autocomplete("../actions/autocomplete.php?p=kategori", {
                width: 190,
                max: 2000,
                selectFirst: false,
                mustMatch:true,
            });
        });
at 09.48
Kirimkan Ini lewat Email BlogThis! Bagikan ke X Berbagi ke Facebook
Labels: autocomplete, javascript, jquery, mustmatch

0 comments:

Posting Komentar

Posting Lebih Baru Posting Lama Beranda
Langganan: Posting Komentar (Atom)

Arsip Blog

  • ►  2012 (1)
    • ►  Januari (1)
  • ▼  2011 (39)
    • ►  November (3)
    • ►  September (1)
    • ►  Agustus (3)
    • ▼  Juli (5)
      • PHP : Fungsi Terbilang
      • JQuery : Fade Out
      • Ubuntu 11.04 : Perfect Server Ubuntu 11.04 with IS...
      • JQuery : Autocomplete Force Input
      • JQuery : Star Rating
    • ►  Juni (5)
    • ►  Mei (1)
    • ►  April (1)
    • ►  Maret (12)
    • ►  Januari (8)
  • ►  2010 (11)
    • ►  Desember (2)
    • ►  Oktober (1)
    • ►  September (1)
    • ►  Agustus (2)
    • ►  Juli (2)
    • ►  Juni (1)
    • ►  Mei (1)
    • ►  Maret (1)
  • ►  2009 (8)
    • ►  November (4)
    • ►  Mei (1)
    • ►  Februari (1)
    • ►  Januari (2)
  • ►  2008 (26)
    • ►  November (3)
    • ►  Oktober (2)
    • ►  September (6)
    • ►  Agustus (1)
    • ►  Juli (4)
    • ►  Juni (8)
    • ►  Mei (2)

Feedjit

Diberdayakan oleh Blogger.