SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Sep 2008
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Select option from combo by typing in text filed

    Hi to all,

    I have combo box where client name come from database.i want to make a textfield where i type the client name and that client name selected in combo

    for example

    client name==== Smith

    when i type in text field

    s

    in combo name start with s should select and when i type sm if no name start with sm other than smith so smith should select .

    thanks.

  2. #2
    SitePoint Addict ArunB's Avatar
    Join Date
    Jun 2008
    Location
    Hyderabad
    Posts
    252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are using jQuery write an XPath expression, which selects OPTION tags whose text contains the text entered in the text field.

    Like $('#selectBoxID > OPTION:contains("' + txtEntered + '")');

    Try it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •