SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to use jquery to replace textbox with select that gets information from database

    replace a text box with a select that gets information from a database using jquery. the query from the database takes an argument

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    What you want to do can be done by reading the following

    http://api.jquery.com/jQuery.ajax/ - Send the request to your script
    http://api.jquery.com/replaceWith/ - Replace the text box with a select box
    http://api.jquery.com/append/ - Append the li values to the select box

  3. #3
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you I will try. You were very helpful


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
  •