sel129
Joined: 04 Apr 2008 Posts: 1
|
Posted: Fri Apr 04, 2008 9:12 am Post subject: how to bold dynamic text in HTML? |
|
|
Hello Everyone,
Can anyone help me with my html problem??
I have a form showing one chunk record at one time. This record is from a table. I want this form to bold certain text from that chunk of record. Since the record is not hardcoded/type inside the form. I want the bold funtion to be dynamic.
Let say,
Record one:
I have an apple.
I want to eat it now.
Record two:
I have a strawberry.
I dun want to eat it now.
First case, I want to bold the whole first line,with the word 'have' in it.. But this line can be anywhere in the page.. It doesn't always have specific position as long as the sentence have the word 'have' in it.
Second case, I want the script to bold the word 'want' every time it finds it.. And only that word!
Can anybody help me on how to do this.. I really dunno how to?  |
|