Code On Button To Echo Tag, Help! - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Code On Button To Echo Tag, Help! (808 Views)
| Code On Button To Echo Tag, Help! by Joit(op): 3:40pm On Oct 31, 2008 |
Nairalanders, does anyone know the code to insert/echo tags in a textarea by just clicking specific buttons. E.g To echo <b></b> in a text area if I click Bold button. |
| Re: Code On Button To Echo Tag, Help! by DualCore1: 9:42pm On Oct 31, 2008 |
i can't really say what u want but here is what i just coded up, hope this works for u. Save the whole of this in a html file (e.g mytags.html) and run it
|
| Re: Code On Button To Echo Tag, Help! by DualCore1: 9:51pm On Oct 31, 2008 |
oops, double post, sorry. lol |
| Re: Code On Button To Echo Tag, Help! by Joit(op): 10:15am On Nov 03, 2008 |
Hello Dual Core, Thank you for the reply. I am glad to tell you that the code works out well but each button message replaces the previous message. Can't there be a way by which each click will add to the previous button click message instead of replacing it, outright. E.g If I click Bold button in nairaland compose area, instead of it to replace the former text it will (code)add to it. I need something like the nairaland compose area button function. I expect your reply. Thanks |
| Re: Code On Button To Echo Tag, Help! by DualCore1: 10:58am On Nov 03, 2008 |
i'll be on in it in about half an hour, got a bug to kill. |
Please Help, How Do I Place Adsense Code On Wordpress • Add Facebook Like/share Button To Your Blog/website • How To Add Social Media Sharing Button To Blogger Blog • 2 • 3 • 4
HACKING 101 • Java, Php Or What? • How Do I Create A Mailing List Form Into My Site
;