0

Hello Everyone,

Can you suggest me for Any Script or snippets of dopdown value given to database using jquery and ajax in php file.

Thank You.

4
Contributors
4
Replies
22
Views
3 Years
Discussion Span
Last Post by diafol
0

dopdown value given to database

What does that mean? You sure you don't have it the other way around? Do you mean pull values from a database and populate a dropdown menu?

0

It's no different from how you would a pull data from the database in a normal $_POST php file. All you do is use $.ajax instead.

0

If you're just getting data and not changing it on the server, use $.get (or $.ajax with GET) or even $.getJSON - depending on how you get your info from the server. Do not use $.post (or $.ajax with POST) unless you're making changes on the server, e.g. insert, delete or update (or changes to a file etc).

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.