Documente Academic
Documente Profesional
Documente Cultură
(http://www.appsntech.com/)
appsntech.com is a how to blog maintained by Sanjoy Dey. Tutorials are mostly focused on
HOME (HTTP://WWW.APPSNTECH.COM/) |
PHP (HTTP://WWW.APPSNTECH.COM/P/PHP.HTML) |
web applica on development, PHP Jquery, Ajax, AngularJS, Web Design, Web Development,
JQUERY (HTTP://WWW.APPSNTECH.COM/P/JQUERY.HTML) |
Like Us
Magento, Javascript,Cygnite PHP Framework and MySQL etc.
FACEBOOK (HTTP://WWW.APPSNTECH.COM/P/FACEBOOKTUTORIAL.HTML) |
PROJECTS (HTTP://WWW.APPSNTECH.COM/P/PROJECTS.HTML) | Open source We...
1,341 likes
How to populate datas into a select box
REQUEST TUTORIAL (HTTP://WWW.APPSNTECH.COM/P/REQUESTTUTORIAL.HTML) |
using jQuery ajax json, php
ABOUT (HTTP://WWW.APPSNTECH.COM/P/ABOUTME.HTML) | WRITE FOR US (HTTP://WWW.APPSNTECH.COM/P/WRITEFORUS.HTML)
Like Page
|
Share
CONTACT US (HTTP://WWW.APPSNTECH.COM/P/CONTACTUS.HTML) |
+6 Recomende isto no Google
(htt (htt (htt (htt (htt Be the first of your friends to like this
www.appsntech.com - Tech P…
Follow +1
Recent Posts
Travis CI: Continuous Integration for PHP
Project
(http://www.appsntech.com/2015/10/travisci
continuousintegrationforphpproject.html)
More > (http://www.appsntech.com/2015/10/travisci
continuousintegrationforphpproject.html)
Get Started With Test Driven Development:
Unit Testing With PHPUnit?
(http://www.appsntech.com/2015/09/get
startedwithtestdrivendevelopmentunit
testingwithphpunit.html)
More > (http://www.appsntech.com/2015/09/get
startedwithtestdrivendevelopmentunittestingwith
phpunit.html)
(http://1.bp.blogspot.com/ 10 Best PHP Tools For Developers
(http://www.appsntech.com/2015/08/10best
tbcaB1uZIgE/VGZmLaYC0pI/AAAAAAAAArY/BssBTnfcZPs/s1600/facebook_style_autocomplete_u phptoolsfordevelopers.html)
sing_angular_js.png)
More > (http://www.appsntech.com/2015/08/10best
phptoolsfordevelopers.html)
If you are wondering how to populate select box using jquery ajax then you may find the
Backbone JS vs Angular JS Uncovering key
below post very simple and useful. differences
(http://www.appsntech.com/2015/08/backbone
jsvsangularjsuncoveringkey
Retrieve values and populate the select box using jquery, ajax and PHP. differences.html)
More > (http://www.appsntech.com/2015/08/backbone
jsvsangularjsuncoveringkeydifferences.html)
8 Brilliant Tools That Empower Web
Developers To Work With A Flair
(http://www.appsntech.com/2015/07/8brilliant
toolsthatempowerwebdevelopers.html)
More > (http://www.appsntech.com/2015/07/8brilliant
toolsthatempowerwebdevelopers.html)
About Me
(https://plus.google.com/1166798482081479531
28)
Sanjoy Dey
(https://plus.google.com/116679848208147953128)
Follow 278
You might also like
View my complete profile
Pay 1 cent per new visitor to your site
http://www.appsntech.com/2012/02/howtopopulatedatasintoselectusing.html 1/4
11/07/2016 How to populate datas into a select box using jQuery ajax json, php
Pay 1 cent per(https://plus.google.com/1166798482081479531
new visitor to your site
Best fraud detection
28) in pay per click advertising + low bid prices = higher
engines. Your solution to the Internet...
$.ajax({ www.payperranking.com
type: "POST", Support or Give Some Love Back
url: 'http://www.appsntech.com/demo/rubro/list_ajax',
data: {'categoryID': $("#category").val(),'isAjax':true},
dataType:'json',
success: function(data) {
Advertise With Us Advertise With Us
var select = $("#select"), options = '';
select.empty();
for(var i=0;i<data.length; i++)
{
options += "<option value='"+data[i].id+"'>"+ data[i].name +"</option
>"; Advertise With Us
}
select.append(options);
}
});
And now in your server side page you may write below to fetch data from database.
Get Subscribe to Free Email Updates!!
Email address... Submit
if (isset($_POST['categoryID'])) {
$id = trim($_POST['categoryID']);
$result = array(); Labels
$id = mysql_real_escape_string($id);
$res = mysql_query("SELECT * FROM subcategories WHERE category_id = AJax
(http://www.appsntech.com/search/label/AJax) (6)
$id");
Angular JS
while ($row = mysql_fetch_array($res)) {
(http://www.appsntech.com/search/label/Angular%20JS)
(3) Angular js with PHP
$result[] = array( (http://www.appsntech.com/search/label/Angular%20js%
'id' => $row['subcatid'], 20with%20PHP) (2) bootstrap
'name' => $row['description'] (http://www.appsntech.com/search/label/bootstrap) (3)
); Cache (http://www.appsntech.com/search/label/Cache)
(2) Codeigniter
} (http://www.appsntech.com/search/label/Codeigni
ter) (5) Composer PHP
echo json_encode($result);
(http://www.appsntech.com/search/label/Composer%20
} PHP) (2) cross site scripting
(http://www.appsntech.com/search/label/cross%20site%20scrip
ting) (1) CRUD
(http://www.appsntech.com/search/label/CRUD) (2)
Cygnite Framework
(http://www.appsntech.com/search/label/C
ygnite%20Framework) (9) Cygnite PHP
Framework
(http://www.appsntech.com/search/label/Cygnite%20PHP%20F
5bb6ade1e91e3cc1ee19c15918b93fc707831961821664f77b5d2fd402739f1d) PHP
Pay 1 cent per new visitor to your site
http://www.appsntech.com/2012/02/howtopopulatedatasintoselectusing.html 2/4
11/07/2016 How to populate datas into a select box using jQuery ajax json, php
Pay 1 cent per new visitor to your site
(http://www.appsntech.com/sea
Best fraud detection in pay per click advertising + low bid prices = higher
rch/label/PHP)
engines. Your solution to the Internet...(30) PHP Framworks
(http://www.appsntech.com/search/label/PHP%20
www.payperranking.com
Framworks) (7) PHP7
(http://www.appsntech.com/search/label/PHP7) (1) psr0
(http://www.appsntech.com/search/label/psr0) (1) REST
webservice
(http://www.appsntech.com/search/label/REST%20webservice)
(1) SOAP
Top 10 AngularJS Gra⩜⌷x Artist - Commonly Asked The Hottest Local (http://www.appsntech.com/search/label/SOAP) (2)
Template Projects Android Design & JavaScript Singles Who Will ubuntu (http://www.appsntech.com/search/label/ubuntu)
(Seeds) with Dev Blog Interview Drive You Crazy ... (3) web application
(http://www.appsntech.com/search/label/web%20applica
Demos Gra⩜⌷x Artist Questions and Featured in the media tion) (2) web design
AngularJS 4U Answers
UI Tricks | UI (http://www.appsntech.com/search/label/web%20design
) (3) wordpress
(http://www.appsntech.com/search/label/wordpress) (1) Yii
(http://www.appsntech.com/search/label/Yii) (1) Zend
(http://www.appsntech.com/search/label/Zend) (2)
Building Mobile Apps?
ElixirDose Jobs Free: Learn Swift Win your FREE DIY electronics,
ElixirDose Jobs 2.2 in 30 days - Kindle Paperwhite Howtos
Apoorv Mote worth $119.99! www.devacron.com
Apoorv Mote http://www.weberbo...
Posts Archive
7 comments
► 2015 (http://www.appsntech.com/search?
updatedmin=201501
01T00:00:00%2B05:30&updatedmax=2016
0101T00:00:00%2B05:30&maxresults=15)
(15)
Add a comment as Alexandre Sayegh
► 2014 (http://www.appsntech.com/search?
updatedmin=201401
01T00:00:00%2B05:30&updatedmax=2015
0101T00:00:00%2B05:30&maxresults=22)
(22)
► 2013 (http://www.appsntech.com/search?
Top comments updatedmin=201301
01T00:00:00%2B05:30&updatedmax=2014
0101T00:00:00%2B05:30&maxresults=6) (6)
▼ 2012 (http://www.appsntech.com/search?
Panagiotis Roditakis 1 year ago - Shared publicly updatedmin=201201
01T00:00:00%2B05:30&updatedmax=2013
These underscores in php always bring me a headache :-) 0101T00:00:00%2B05:30&maxresults=14)
(14)
1 · Reply
► December
(http://www.appsntech.com/2012_12_01_ar
chive.html) (1)
1 · Reply
▼ February
(http://www.appsntech.com/2012_02_01_ar
chive.html) (4)
Sanjoy Dey 1 year ago How to use memcached with PHP ?
You welcome. Happy coding... :) (http://www.appsntech.com/2012/02/how
tousememcachedwithphp.html)
How to Install Memcached in Windows 7 /
WAMP ?
Maria Antonietta Usai 3 years ago (http://www.appsntech.com/2012/02/how
Thanks a loto for this script! It was what I' was looking for! toinstallmemcachedinwindows
7.html)
Which Framework to use Zend or
Codeigniter ??
Sanjoy Dey 3 years ago (http://www.appsntech.com/2012/02/whic
Most welcome Maria..... Keep visiting for new posts here.... hframeworktousezendor.html)
How to populate datas into a select box
using jQue...
(http://www.appsntech.com/2012/02/how
http://www.appsntech.com/2012/02/howtopopulatedatasintoselectusing.html 3/4
11/07/2016 How to populate datas into a select box using jQuery ajax json, php
Newer Post (http://www.appsntech.com/2012/02/whichframeworktousezendor.html) Home topopulatedatasintoselectusing.html)
Older Post (http://www.appsntech.com/2011/08/howtoexportdatagriddatastoexcel.html)
(http://www.appsntech.com/) ► 2011 (http://www.appsntech.com/search?
updatedmin=201101
Subscribe to: Post Comments (Atom) 01T00:00:00%2B05:30&updatedmax=2012
(http://www.appsntech.com/feeds/7668019231326930651/comments/default) 0101T00:00:00%2B05:30&maxresults=1) (1)
Join this site
with Google Friend Connect
Members (16)
Already a member? Sign in
Alexa Rank
(http://www.alexa.com/
data/details/main?
url=http://www.appsnte
ch.com/)
(http://www.alexa.com/
siteinfo/http://www.app
sntech.com/)
HOME (HTTP://WWW.APPSNTECH.COM/) PHP (HTTP://WWW.APPSNTECH.COM/P/PHP.HTML)
JQUERY (HTTP://WWW.APPSNTECH.COM/P/JQUERY.HTML) FACEBOOK (HTTP://WWW.APPSNTECH.COM/P/FACEBOOKTUTORIAL.HTML)
CYGNITE PHP FRAMEWORK (HTTP://WWW.CYGNITEFRAMEWORK.COM/2013/08/CONTRIBUTIONTOCYGNITEFRAMEWORK.HTML)
ABOUT (HTTP://WWW.APPSNTECH.COM/P/ABOUTME.HTML) ADVERTISE WITH US (HTTP://WWW.APPSNTECH.COM/P/ADVERTISEWITHUS.HTML)
PRIVACY POLICY (HTTP://WWW.APPSNTECH.COM/P/PRIVACYPOLICY.HTML)
COPYRIGHT @20112015 APPSNTECH.COM. ALL RIGHTS RESERVED. POWERED BY SANJOY DEY PRODUCTIONS
http://www.appsntech.com/2012/02/howtopopulatedatasintoselectusing.html 4/4