Ajax code in CodeIgniter
===

Somebody please help me. How can I apply the bellow code with CodeIgniter?. I've written the same code in CI, but not getting any outcome of the code.

http://www.w3schools.com/php/php_ajax_livesearch.asp

Thanks in advance. Waiting for valuable replies.