SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Dec 2011
    Posts
    221
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    autocomplete from select dropdown

    Greetings!

    Is it possible to have an autocomplete for advance filter?
    below is my code.
    Code:
    <p>
    <select name='sel' id='sel'>
    <option value ='b_Title'>Title:</option>
    <option value='ba_Accnum'>Accession number:</option>
    <option value ='isbn'>ISBN</option>
    <option value ='author'>Author</option>
    </select>
    <input type='text' id="keyword" tabindex="0" name = 'keyword'/>
    <input type='submit' value='submit' name='minor'  onclick="basic()">
    </p>
    Select options will decide what table can I found my keyword.
    Any help will do.

  2. #2
    SitePoint Member
    Join Date
    Jan 2012
    Location
    Chennai
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you will have to use javascript event onkeypress to check any character entered in textbox and use ajax to show suggestions fetched from database


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
  •