Hi . I have to problems with php.
First one:
I use a javascript function for making text bold in textarea field. That functions puts something like this: text how can i change that to <b>.
Any php function for that?
And the second one also with textarea
I want to have in the lift side of textarea a frame or something that counts the current line number and that is scrolled in the same time with textarea.
Any idea?
Textarea
Moderator: General Moderators
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
If you want to see the actual tags just use:
[/syntax]document.getElementById('textarea_id').innerHTML = '<b>' + {put your text to be bolded} + '</b>';
[/syntax]document.getElementById('textarea_id').innerHTML = '<b>' + {put your text to be bolded} + '</b>';
Code: Select all
You'll see the <b> tags and they'll not be parsed by browser - makes sure you're actually using a textarea...