Auto complete How to get record id of name selected

Discussion in 'jQuery' started by vikaspa, Nov 3, 2012.

  1. #1
    Please click on following link

    http://webvikas.net.in/purohit/admin/insertrecord.php
    then click Find
    a pop up appears

    please type say di
    you will get autocomplete text from database

    Auto complete feature which is working fine.

    My problem
    How to get record id of name selected ?
     
    vikaspa, Nov 3, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Have the server return both the name and the record id (it currently returns just the name). If it's returned as a JSON structure, you can handle the data as an array and get the id from the name.
     
    Rukbat, Nov 3, 2012 IP