Auto Complete highlight the typed characters
Dear All
I am using autocomplete / suggestion
It works great however
it has facility to hightligh the characters in bigining
example if a person typing
ion
and in database table we have word rationing
Word rationing is being display properly (word ion is in middle of string)
How can i highligh the selection part
in short word rationing I want to be displayed as rationing
highlinght the word typed by user
pls help
What had tried
- <?php
- $string = "Rationing is compulsory.....";
- $foo="<span class=\'scrolltableheading\'>foo</span>";
- echo "<br>".$foo."<br>";
- $newstring = str_replace("ion", "foo", $string, $count);
- print "$count changes were made.\n";
- print $newstring;
-
-
- ?>
- <link href="menuxx/style/adminstyle.css" rel="stylesheet" type="text/css">
- <body class="scrolltableheading"></body>
displays
foo
1 changes were made. Ratfooing is compulsory.....
However I want only
'ion'
characters to be displayed in different font/ i.e highlighted
Can i do this using JQUERY
Pls Pls help