[Solved] Show highlight match in list |
I have this function below where if I type in my input it displays a list of categories
But on the list I below input I need the letter highlighted if possible For example if I type in letter a in input it should be show bold in list. Is that possible to do so? How would I do so? Thanks for your time Controller PHP Code: <?php Tag View PHP Code: <?php if ($tags) {?> Script Code: <script type="text/javascript">
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
Found what I am after text helper
Codeigniter has a lot of great things highlight_phrase($result['tag_name'], $this->input->post('tag_name'), '<span style="color:#990000;">', '</span>') PHP Code: public function tags() {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |