đŸ•ˇī¸ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 104 (from laksa085)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

â„šī¸ Skipped - page is already crawled

📄
INDEXABLE
✅
CRAWLED
2 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.1 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html
Last Crawled2026-04-05 04:06:48 (2 days ago)
First Indexed2018-04-24 05:11:12 (7 years ago)
HTTP Status Code200
Meta TitleLive Search JSON Data Using Ajax jQuery | Webslesson
Meta DescriptionIn this post we have make simple Live JSON data search application by using Ajax JQuery. For this we have using Ajax Jquery getJSON method and JQuery regular expression for search data from JSON data.
Meta Canonicalnull
Boilerpipe Text
Hi, You have already know Ajax Live Data search by using Mysql table data in PHP , but in this post we have show you how to make live data search of JSON File data by using Ajax JQuery . We all already know JSON stand for Java Script Object Notation and it is a very lightweight data processing format and it can easy for human read. So In this post we have store data in JSON file and by using Ajax JQuery we will make simple Live data search application that search data from JSON file and display on web browser without refreshing of page. In this example we have first create simple employee data like name, image and location of employee and store into JSON format in file and that file we have store in our working folder. After this we have create one simple page and in that page we have create one textbox. So when we have type something in textbox then at that time jquery event will file which search data from JSON file. For load JSON file data in our page we have use Ajax getJSON() method. By using this method we can load JSON file data in our page. After loading JSON File data we want search data from this JSON data, so we have use simple jquery regular expression. By using this jquery regular expression can search JSON data by key and value pair and for display search data on web page we have use Jquery append() method. This method will append html code in particular HTML tag and that display on web page. Here search data like employee image, name and location will load below textbox in drop down list format and here we can search by name and location also. This type of feature is mostly we can see in Social media site like facebook etc. But we can also use this feature in our developing project also. In this post we have share you a source code and online demo also for better understanding regarding this feature like Live JSON data search by using Ajax JQuery. Online Demo Employee Data Source Code <!DOCTYPE html> < html > < head > < title > Webslesson Tutorial | Search HTML Table Data by using JQuery </ title > < script src = " https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js " > </ script > < link rel = " stylesheet " href = " https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css " /> < script src = " https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js " > </ script > < style > #result { position : absolute ; width : 100% ; max-width : 870px ; cursor : pointer ; overflow-y : auto ; max-height : 400px ; box-sizing : border-box ; z-index : 1001 ; } .link-class:hover { background-color : #f1f1f1 ; } </ style > </ head > < body > < br /> < br /> < div class = " container " style =" width : 900px ; " > < h2 align = " center " > JSON Live Data Search using Ajax JQuery </ h2 > < h3 align = " center " > Employee Data </ h3 > < br /> < br /> < div align = " center " > < input type = " text " name = " search " id = " search " placeholder = " Search Employee Details " class = " form-control " /> </ div > < ul class = " list-group " id = " result " > </ ul > < br /> </ div > </ body > </ html > < script > $ ( document ) . ready ( function ( ) { $ . ajaxSetup ( { cache : false } ) ; $ ( '#search' ) . keyup ( function ( ) { $ ( '#result' ) . html ( '' ) ; $ ( '#state' ) . val ( '' ) ; var searchField = $ ( '#search' ) . val ( ) ; var expression = new RegExp ( searchField , "i" ) ; $ . getJSON ( 'data.json' , function ( data ) { $ . each ( data , function ( key , value ) { if ( value . name . search ( expression ) != - 1 || value . location . search ( expression ) != - 1 ) { $ ( '#result' ) . append ( '<li class="list-group-item link-class"><img src="' + value . image + '" height="40" width="40" class="img-thumbnail" /> ' + value . name + ' | <span class="text-muted">' + value . location + '</span></li>' ) ; } } ) ; } ) ; } ) ; $ ( '#result' ) . on ( 'click' , 'li' , function ( ) { var click_text = $ ( this ) . text ( ) . split ( '|' ) ; $ ( '#search' ) . val ( $ . trim ( click_text [ 0 ] ) ) ; $ ( "#result" ) . html ( '' ) ; } ) ; } ) ; </ script > data.json [ { "name":"Angel Lewis", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/3/000/0d4/2f7/07a3d35.jpg", "location":"Seattle, WA" }, { "name":"Justin Dean", "image": "https://media.licdn.com/mpr/mpr/shrink_100_100/AAEAAQAAAAAAAAIMAAAAJGExNTE4OWY4LWU4ODMtNDA2ZS1iNWI1LWNkYmIyOWMyMGQ5Zg.jpg", "location":"Muscatine, IA" }, { "name":"Nora Blake", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/2/005/0b8/118/387e091.jpg", "location":"Seattle, WA" }, { "name":"Russell Fox", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/2/000/084/26e/2d9e05b.jpg", "location":"Albuquerque, NM" }, { "name":"Daryl Bradley", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/3/000/042/0ad/197566e.jpg", "location":"Buckeystown, MD" }, { "name":"Benjamin Gonzales", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/8/005/0b2/1c9/2a423c1.jpg", "location":"Atlanta, GA" }, { "name":"Viola Francis", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/AAEAAQAAAAAAAASJAAAAJGMyMTUzN2EyLTExY2ItNDZiNS1hMTY1LTI4NDA2NDMwZmFkNg.jpg", "location":"Zanesville, OH" }, { "name":"Reginald Benson", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/1/000/10f/3cc/275a407.jpg", "location":"Gilbert, AZ" }, { "name":"Glenda Ray", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/8/005/0ac/1ca/07c25a2.jpg", "location":"Baltimore, MD" }, { "name":"Paula Vargas", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/5/005/03e/073/36a5c47.jpg", "location":"Baltimore, MD" }, { "name":"Mark Armstrong", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/5/005/010/09b/39b122d.jpg", "location":"Hallandale Beach, FL" }, { "name":"Jaime Campbell", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/AAEAAQAAAAAAAATUAAAAJDJkY2Q1Mzk0LTI1YzItNDFhNy04ZmQ0LWY3NzZlZTZlNGVmYw.jpg", "location":"Zanesville, OH" }, { "name":"Mike Beck", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/2/000/01c/0d4/2b69e7c.jpg", "location":"Garner, NC" }, { "name":"Ann Lowe", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/7/000/1f6/019/29cd853.jpg", "location":"Cabin John, MD" }, { "name":"Ryan Wolfe", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/1/000/0bf/335/05a57f6.jpg", "location":"Los Angeles, CA" }, { "name":"Dwayne Gutierrez", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/3/000/29b/028/2426536.jpg", "location":"San Jose, CA" }, { "name":"Bill Burke", "image": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/7/000/1bc/12e/1423106.jpg", "location":"Bakersfield, CA" } ]
Markdown
# [Webslesson](https://www.webslesson.info/) ## PHP, Node.js, React.js, MySql, Jquery, AngularJS, Ajax, Codeigniter, Laravel Tutorial Menu - [Home](https://www.webslesson.info/) - [PHP](https://www.webslesson.info/search/label/php) - [MySql](https://www.webslesson.info/search/label/mysql) - [JQuery](https://www.webslesson.info/search/label/JQuery) - [Ajax](https://www.webslesson.info/search/label/Ajax) - [Laravel](https://www.webslesson.info/search/label/laravel) - [Codeigniter](https://www.webslesson.info/search/label/Codeigniter) - [Tools](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html) - [JSON Minifier Tool](https://www.webslesson.info/p/json-minifier.html "JSON Minifier Tool") - [Image Optimizer & Compressor](https://www.webslesson.info/p/image-optimizer-compressor.html "Image Optimizer & Compressor") - [JSON Formatter Tool](https://www.webslesson.info/p/json-formatter-tool.html "JSON Formatter and Validator Tool | Free Online JSON Beautifier") - [JavaScript Minify Tool](https://www.webslesson.info/p/javascript-minify-tool.html "JavaScript Compression Tool - Free Online JavaScript Minifier") - [HTML Formatter Tool](https://www.webslesson.info/p/html-formatter-tool.html "Free Online HTML Formatter and Beautifier Tool") - [HTML Compression Tool](https://www.webslesson.info/p/html-compression-tool.html "HTML Compression Tool - Reduce HTML File Size for Faster Websites") - [Online Slug Generator](https://www.webslesson.info/p/online-slug-generator-tool.html "Online Slug Generator") - [Online Source Code Formatter](https://www.webslesson.info/p/online-code-formatter.html "Online Source Code Formatter") - [HTML Encoder / Decoder](https://www.webslesson.info/p/online-html-entities-encoder-and-decoder.html "HTML Encoder / Decoder") - [Convert Case & Count Character](https://www.webslesson.info/2018/03/count-character-count-words-online-convert-case.html "Convert Case & Count Character") - [**Free PHP Project**](https://www.webslesson.info/p/download-php-project-with-source-code.html) - [Demos](http://demo.webslesson.info/ "Find all Webslesson Demo at Single Place") - [About Us](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html) - [About Us](https://www.webslesson.info/p/about-us.html) - [Write for Us](https://www.webslesson.info/p/write-for-us-publish-guest-post.html) - [Privacy Policy](https://www.webslesson.info/p/privacy-policy.html) - [Terms and Condition](https://www.webslesson.info/p/terms-conditions.html) - [Contact Me](https://www.webslesson.info/p/contact-us.html) ## Friday, 10 February 2017 # [Live Search JSON Data Using Ajax jQuery](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html) [Webslesson](https://www.blogger.com/profile/03700932360506067475 "author profile") [20:58](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html "permanent link") [Ajax](https://www.webslesson.info/search/label/Ajax), [JQuery](https://www.webslesson.info/search/label/JQuery), [jquery-ajax-json-live-search](https://www.webslesson.info/search/label/jquery-ajax-json-live-search), [json-live-search](https://www.webslesson.info/search/label/json-live-search), [live-search-with-jquery-ajax-json](https://www.webslesson.info/search/label/live-search-with-jquery-ajax-json), [live-search-with-jquery-json](https://www.webslesson.info/search/label/live-search-with-jquery-json), [live-search-with-json-and-jquery](https://www.webslesson.info/search/label/live-search-with-json-and-jquery), [search-json-jquery](https://www.webslesson.info/search/label/search-json-jquery) [36 comments](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html#comment-form) [![](https://img2.blogblog.com/img/icon18_edit_allbkg.gif)](https://www.blogger.com/post-edit.g?blogID=8964111134041337103&postID=4027569555033884211&from=pencil "Edit Post") [![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH1ECBnYdLbOfQyRRnEe4z8BC6OoiY0yakue2qbrderDxHFva50JHrLqbhCT7vh3HTAYzLEB5ds4EI3zJOgP2dDVNY9VizFKkIyTfolvL3mryZAIqmcsRbcljBCRgcZdRSO2yuUH9mIq2t/s1600/json-live-data-search-using-ajax-jquery.jpg)](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH1ECBnYdLbOfQyRRnEe4z8BC6OoiY0yakue2qbrderDxHFva50JHrLqbhCT7vh3HTAYzLEB5ds4EI3zJOgP2dDVNY9VizFKkIyTfolvL3mryZAIqmcsRbcljBCRgcZdRSO2yuUH9mIq2t/s1600/json-live-data-search-using-ajax-jquery.jpg) Hi, You have already know [Ajax Live Data search by using Mysql table data in PHP](http://www.webslesson.info/2016/03/ajax-live-data-search-using-jquery-php-mysql.html), but in this post we have show you [how to make live data search of JSON File data by using Ajax JQuery](http://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html). We all already know JSON stand for Java Script Object Notation and it is a very lightweight data processing format and it can easy for human read. So In this post we have store data in JSON file and by using Ajax JQuery we will make simple Live data search application that search data from JSON file and display on web browser without refreshing of page. In this example we have first create simple employee data like name, image and location of employee and store into JSON format in file and that file we have store in our working folder. After this we have create one simple page and in that page we have create one textbox. So when we have type something in textbox then at that time jquery event will file which search data from JSON file. For load JSON file data in our page we have use Ajax getJSON() method. By using this method we can load JSON file data in our page. After loading JSON File data we want search data from this JSON data, so we have use simple jquery regular expression. By using this jquery regular expression can search JSON data by key and value pair and for display search data on web page we have use Jquery append() method. This method will append html code in particular HTML tag and that display on web page. Here search data like employee image, name and location will load below textbox in drop down list format and here we can search by name and location also. This type of feature is mostly we can see in Social media site like facebook etc. But we can also use this feature in our developing project also. In this post we have share you a source code and online demo also for better understanding regarding this feature like Live JSON data search by using Ajax JQuery. *** ### Online Demo ## JSON Live Data Search using Ajax JQuery ### Employee Data *** ### Source Code ``` ``` ### data.json ``` ``` - Share This: - [Facebook](https://www.facebook.com/share.php?v=4&src=bm&u=https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html&t=Live%20Search%20JSON%20Data%20Using%20Ajax%20jQuery "Share this on Facebook") - [Twitter](https://twitter.com/home?status=Live%20Search%20JSON%20Data%20Using%20Ajax%20jQuery%20--%20https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html "Tweet This!") - [Google+](https://plus.google.com/share?url=https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html "Share this on Google+") - [Stumble](https://www.stumbleupon.com/submit?url=https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html&title=Live%20Search%20JSON%20Data%20Using%20Ajax%20jQuery "Stumble upon something good? Share it on StumbleUpon") - [Digg](https://digg.com/submit?phase=2&url=https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html&title=Live%20Search%20JSON%20Data%20Using%20Ajax%20jQuery "Digg this!") [Email This](https://www.blogger.com/share-post.g?blogID=8964111134041337103&postID=4027569555033884211&target=email "Email This")[BlogThis\!](https://www.blogger.com/share-post.g?blogID=8964111134041337103&postID=4027569555033884211&target=blog "BlogThis!")[Share to X](https://www.blogger.com/share-post.g?blogID=8964111134041337103&postID=4027569555033884211&target=twitter "Share to X")[Share to Facebook](https://www.blogger.com/share-post.g?blogID=8964111134041337103&postID=4027569555033884211&target=facebook "Share to Facebook") #### Related Posts: - ![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH1ECBnYdLbOfQyRRnEe4z8BC6OoiY0yakue2qbrderDxHFva50JHrLqbhCT7vh3HTAYzLEB5ds4EI3zJOgP2dDVNY9VizFKkIyTfolvL3mryZAIqmcsRbcljBCRgcZdRSO2yuUH9mIq2t/s80-c/json-live-data-search-using-ajax-jquery.jpg)[Live Search JSON Data Using Ajax jQuery](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html "Live Search JSON Data Using Ajax jQuery") Hi, You have already know Ajax Live Data search by using Mysql table data in PHP, but in this post we have show you how to make live data search â€Ļ [Read More](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html) [Newer Post](https://www.webslesson.info/2017/02/upload-file-without-using-form-submit-in-ajax-php.html "Newer Post") [Older Post](https://www.webslesson.info/2017/01/how-to-uncheck-checked-radio-button-by-using-javascript.html "Older Post") [Home](https://www.webslesson.info/) #### 36 comments: 1. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/07519480447194697343) [12 February 2017 at 09:54](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1486922048924#c5831991320490734063) Wow [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/5831991320490734063) [Replies]() 2. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Vishal](https://www.blogger.com/profile/15116946068633161354) [23 February 2017 at 20:25](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1487910331323#c1719316206903450866) If i want to display employee details after getting search results then how i can implement ?? [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/1719316206903450866) [Replies]() 3. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [booraq](https://www.blogger.com/profile/15770457340654944502) [16 April 2017 at 12:20](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1492370412773#c8792818069598232640) thank you guy, a great code ;-) [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/8792818069598232640) [Replies]() 4. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Lovely](https://www.blogger.com/profile/01664928656996129252) [16 August 2017 at 18:48](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1502934530463#c3694261524013616766) Hi, it wont work. It shows nothing [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/3694261524013616766) [Replies]() 5. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/14523217991688326013) [26 November 2017 at 06:28](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1511706481084#c4486655014351900396) thanks, and can you please tell me how to retain search result value after refresh the page and this proper working with mouse but doesn't work with keyboard arrow top bottom arrow for select li, so please reply me how I m able to solve these problems... [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/4486655014351900396) [Replies]() 6. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/12982886358313357200) [12 March 2018 at 15:37](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1520894247573#c3852048788480098102) Good [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/3852048788480098102) [Replies]() 7. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/15214132453097412346) [30 March 2018 at 22:05](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1522472743396#c7102963126099746080) Thankyou So Much. How I can Populate this data from my database. Can you Please Help me. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/7102963126099746080) [Replies]() 8. ![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx0G605cdkitNVVVWcHpjb3Df_Sk2BYtidNkiHCBFmc8i8YKwKBa49oH9ZHvQAcluOlnivNzirYEo6XUMw_cbFS87wPv6gpoi-5Jeuz4ZZO6Sx6YBL-XE7iGrtGOjHGQ/s45-c/android-chrome-192x192.png) [សន្សំសម្រážļប់កážļរវិនិយោគ-SAVE FOR INVESTMENT](https://www.blogger.com/profile/01290599388036065203) [20 April 2018 at 08:19](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1524237586436#c3333938059697709519) hello why it show double data after type search but if we tab other browser or use other program and then switch back it show only one data [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/3333938059697709519) [Replies]() 9. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Jioribel](https://www.blogger.com/profile/08954034027315389291) [4 June 2018 at 19:31](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1528165883907#c2208511229948208695) Thanks, but i have trouble because my json file have 35 mb, can you suggest to me how to load that amount of data , without broken the load while is searching. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/2208511229948208695) [Replies]() 10. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/16490711699790160215) [15 July 2018 at 00:21](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1531639293979#c8591005757511543415) someone please hello me it doesnot work while clearing the search name all the search result comes on the screen. thank you. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/8591005757511543415) [Replies]() 11. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/14889773140955460705) [3 December 2018 at 22:35](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1543905328776#c7870282792847127129) Thank you Sir for the code it works excellent but one issue is there it only works on firefox not on google chrome why?????? [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/7870282792847127129) [Replies]() 12. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/02368317222587933158) [4 January 2019 at 08:38](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1546619914269#c4178922877708801960) Not working in Google Chrome Browser. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/4178922877708801960) [Replies]() 13. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Farrukh Ahmed](https://www.blogger.com/profile/18135498395126338115) [23 February 2019 at 22:28](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1550989721233#c2418276040126943356) Not working in google chrome. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/2418276040126943356) [Replies]() 14. ![](https://resources.blogblog.com/img/blank.gif) Anonymous [3 March 2019 at 13:11](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1551647493017#c6212640246527820914) Likewise, I get the same result. This seems like it'll be a great option to implement for some of my projects, but I'm seeing the same thing. Out of the box, I only get the live results in Firefox. I'm on a Mac and it isn't happening in Chrome or Safari, just FF. For good user experience, it'll be great if an adjustment to the code can help this work without making end users tweak their browser settings. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/6212640246527820914) [Replies]() 15. ![](https://resources.blogblog.com/img/blank.gif) Anonymous [3 March 2019 at 13:17](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1551647833438#c4933228993600720591) Also, Firefox shows the live search dropdown, but doesn't show the images. For me, they display as "broken image" icons. Looks like LinkedIn's CDN is returning a 404 error for each of the image URLs in the JSON file. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/4933228993600720591) [Replies]() 16. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/06959335678089049715) [23 March 2019 at 09:24](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1553358246559#c543757194867646769) If you are running in crome run the service for example if you are using python run simple httpserver in your local machine in the path where file was located eg: python -m SimpleHTTPServer 9000 In browser http://localhost:9000/search.html [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/543757194867646769) [Replies]() 17. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [svyatoslav](https://www.blogger.com/profile/04980534637133628335) [28 March 2019 at 02:12](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1553764351033#c135040287547468397) Really not working in Chrome. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/135040287547468397) [Replies]() 18. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [svyatoslav](https://www.blogger.com/profile/04980534637133628335) [28 March 2019 at 04:17](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1553771839106#c3603807373280133747) Eventually I found a solution so the code could work in Chrome. You just need to transfer it to a server. That is the only thing that worked for me. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/3603807373280133747) [Replies]() 19. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/04864978787625523919) [1 April 2019 at 00:28](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1554103704731#c5092349202481135632) Sweet. It worked perfectly. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/5092349202481135632) [Replies]() 20. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/09436802612256886380) [8 April 2019 at 05:30](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1554726604248#c624962648187164974) why \$('\#state').val(''); ? [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/624962648187164974) [Replies]() 21. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/17277802968053607896) [10 May 2019 at 12:21](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1557516099699#c8085986924403370872) Not working in chrome, please fix this :) [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/8085986924403370872) [Replies]() 22. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/11076988865984018189) [8 June 2019 at 07:32](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1560004327484#c517289861613260842) How to hide the result list when search bar is empty? [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/517289861613260842) [Replies]() 23. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/02628229414498088488) [10 October 2019 at 05:08](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1570709299361#c3748637131417461298) Is this code run in to the Codeigniter or not? plz help to run this code in to the codeigniter. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/3748637131417461298) [Replies]() 24. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/10385499693215466847) [25 January 2020 at 05:28](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1579958880667#c7695896806252492820) How can I change your code into 'go to url after click the result'? [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/7695896806252492820) [Replies]() 25. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Ha](https://www.blogger.com/profile/10912007634223428880) [14 February 2020 at 07:45](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1581695149122#c5572680540032137228) Can I add "No results found"? [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/5572680540032137228) [Replies]() 26. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Muhammad Azeem Khalid](https://www.blogger.com/profile/06417096330319346168) [22 July 2020 at 04:42](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1595418166446#c8258228875432160638) Nice Code solved my problem thumb up............... [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/8258228875432160638) [Replies]() 27. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Cybertech](https://www.blogger.com/profile/04253232366978399043) [26 October 2020 at 14:34](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1603748062552#c7789236601943065790) Thanks alot, works perfectly!!\! [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/7789236601943065790) [Replies]() 28. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Fede](https://www.blogger.com/profile/08890429854766585115) [18 January 2021 at 11:16](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1610997387702#c5816661092312536074) You have to wacht out in your JSON File. If the file has an array inside another array, is necesary do a i++. [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/5816661092312536074) [Replies]() 29. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Sammy Shark](https://www.blogger.com/profile/14378136746325756185) [2 April 2021 at 07:03](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1617372221750#c874533600697968833) Hello there I want to know how I can make this work on my Google Chrome browser and how to implement this code in C\# MVC ? [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/874533600697968833) [Replies]() 30. ![](https://www.blogger.com/img/blogger_logo_round_35.png) [Unknown](https://www.blogger.com/profile/07169748551367700921) [3 February 2022 at 05:27](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1643894855370#c3625547308886806864) hi, can i get the source code for this project. Thank you [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/3625547308886806864) [Replies]() 31. ![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIGYeHwMpVs56HaQIEYMFOPfZV8VnNP3WEP-mnui2wQu-e50s0Gn-Tt_kj0irxrrfAo0sjVqKQcuV9exnjgJ68ZOu6SRtPtZPQRXJErR8JtnshPqn8GLQ_o_CoUsxFSg/s45-c/IMG_20220224_181239_3.jpg) [Apollo11lion](https://www.blogger.com/profile/00386868451603419409) [7 February 2023 at 04:54](https://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html?showComment=1675774482849#c7620951611644117624) It very awesome\! [Reply]()[Delete](https://www.blogger.com/comment/delete/8964111134041337103/7620951611644117624) [Replies]() [Add comment]() [Load more...]() ## Online Tool - [**Image Optimizer & Compressor Tool**](https://www.webslesson.info/p/image-optimizer-compressor.html "Image Optimizer & Compressor") - [JSON Minifier Tool](https://www.webslesson.info/p/json-minifier.html "JSON Minifier Tool") - [JSON Formatter Tool](https://www.webslesson.info/p/json-formatter-tool.html "JSON Formatter and Validator Tool | Free Online JSON Beautifier") - [JavaScript Minify Tool](https://www.webslesson.info/p/javascript-minify-tool.html "JavaScript Compression Tool - Free Online JavaScript Minifier") - [HTML Formatter Tool](https://www.webslesson.info/p/html-formatter-tool.html "Free Online HTML Formatter and Beautifier Tool") > [Webslesson](https://www.facebook.com/webslesson) ## Popular Posts - [PHP Project \| How to Create eCommerce Product Filter with Pagination using Vanilla JavaScript](https://www.webslesson.info/2021/10/php-project-how-to-create-ecommerce-product-filter-with-pagination-using-vanilla-javascript.html) - [Online Student Result Management System in PHP with Mysql](https://www.webslesson.info/2020/12/online-student-result-management-system-in-php-with-mysql.html) - [Display Online Users using PHP Mysql with Ajax Jquery](https://www.webslesson.info/2017/08/display-online-users-using-php-mysql-with-ajax-jquery.html) - [Build Real time Chat Application in PHP Mysql using WebSocket](https://www.webslesson.info/2021/01/build-real-time-chat-application-in-php-mysql-using-websocket.html) - [How to Make Product Filter in php using Ajax](https://www.webslesson.info/2018/08/how-to-make-product-filter-in-php-using-ajax.html) - [Export HTML table to Excel File using Jquery with PHP](https://www.webslesson.info/2016/08/export-html-table-to-excel-file-using-jquery-with-php.html) - [How to use Mysql View in PHP Code](https://www.webslesson.info/2016/05/how-to-use-mysql-view-in-php-code.html) - [Ajax Live Data Search using JavaScript with PHP](https://www.webslesson.info/2021/06/ajax-live-data-search-using-javascript-with-php.html) - [Comments System using PHP and Ajax](https://www.webslesson.info/2017/12/comments-system-using-php-and-ajax.html) - [Live Chat System in PHP using Ajax JQuery](https://www.webslesson.info/2018/07/live-chat-system-in-php-using-ajax-jquery.html) Copyright Š 2026 [Webslesson](https://www.webslesson.info/)
Readable Markdown
[![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH1ECBnYdLbOfQyRRnEe4z8BC6OoiY0yakue2qbrderDxHFva50JHrLqbhCT7vh3HTAYzLEB5ds4EI3zJOgP2dDVNY9VizFKkIyTfolvL3mryZAIqmcsRbcljBCRgcZdRSO2yuUH9mIq2t/s1600/json-live-data-search-using-ajax-jquery.jpg)](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH1ECBnYdLbOfQyRRnEe4z8BC6OoiY0yakue2qbrderDxHFva50JHrLqbhCT7vh3HTAYzLEB5ds4EI3zJOgP2dDVNY9VizFKkIyTfolvL3mryZAIqmcsRbcljBCRgcZdRSO2yuUH9mIq2t/s1600/json-live-data-search-using-ajax-jquery.jpg) Hi, You have already know [Ajax Live Data search by using Mysql table data in PHP](http://www.webslesson.info/2016/03/ajax-live-data-search-using-jquery-php-mysql.html), but in this post we have show you [how to make live data search of JSON File data by using Ajax JQuery](http://www.webslesson.info/2017/02/live-search-json-data-using-ajax-jquery.html). We all already know JSON stand for Java Script Object Notation and it is a very lightweight data processing format and it can easy for human read. So In this post we have store data in JSON file and by using Ajax JQuery we will make simple Live data search application that search data from JSON file and display on web browser without refreshing of page. In this example we have first create simple employee data like name, image and location of employee and store into JSON format in file and that file we have store in our working folder. After this we have create one simple page and in that page we have create one textbox. So when we have type something in textbox then at that time jquery event will file which search data from JSON file. For load JSON file data in our page we have use Ajax getJSON() method. By using this method we can load JSON file data in our page. After loading JSON File data we want search data from this JSON data, so we have use simple jquery regular expression. By using this jquery regular expression can search JSON data by key and value pair and for display search data on web page we have use Jquery append() method. This method will append html code in particular HTML tag and that display on web page. Here search data like employee image, name and location will load below textbox in drop down list format and here we can search by name and location also. This type of feature is mostly we can see in Social media site like facebook etc. But we can also use this feature in our developing project also. In this post we have share you a source code and online demo also for better understanding regarding this feature like Live JSON data search by using Ajax JQuery. *** ### Online Demo ### Employee Data *** ### Source Code ``` ``` ### data.json ``` ```
Shard104 (laksa)
Root Hash2139122735469487304
Unparsed URLinfo,webslesson!www,/2017/02/live-search-json-data-using-ajax-jquery.html s443