here i write code where all persons names comes from Facebook API . and it is showing on lightbox. now i want to implement search functionality using javasciprt/jquery . Can
You can use regular expression instead of indexOf as it may not work in IE7/IE8
and using regular expression you will can also use the 'i' modifier to make the search case insensitive.