1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Jquery Autocomplete list display more than 10 records

Discussion in 'HTML & Website Design' started by newphpcoder, Sep 2, 2015.

  1. #1
    Hi,

    Good day!

    I have a jquery code for autocomplete list but I notice that only 10 records display. How can I make it more?
    
    $().ready(function() {
      $("#work_data").autocomplete("get_work_list.php", {
      width: 300,
      matchContains: true,
      mustMatch: true,
      selectFirst: false
      });
      $("#work_data").result(function(event, data, formatted) {
      $("#work_data").val(data[1]);
      });
      });   
    
    Code (markup):


    Thank you
     
    newphpcoder, Sep 2, 2015 IP
  2. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #2
    With nothing but a out of context snippet of code I would guess that the control is in the php script get_work_list.php so you probably need to modify that code to either give you and option, or at least change it to the number you need.
     
    COBOLdinosaur, Sep 2, 2015 IP
  3. newphpcoder

    newphpcoder Greenhorn

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    I attached some other file like the js and get_work_list.php

    Thank you
     

    Attached Files:

    newphpcoder, Sep 2, 2015 IP
  4. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #4
    The php looks like it processes all the records it gets from the query. If there is a limit specified on the query, that would explain the behavior and be an easy fix. As for the jquery... that is a third party pluging, and I don't dig through those because 90% of them are trash written by 3rd-rate developers. I suggest the place to get the answer you need is from the author.
     
    COBOLdinosaur, Sep 3, 2015 IP