function InsertBBCode(what) {
var form = document.newtopic.body;
var what;
if (what == "code") {
form.value += "[ code ][ /code ]";
}
if (what == "bold") {
form.value += "[b] [/b]";
}
if (what == "underline") {
form.value += "[u] [/u]";
}
if (what == "italic") {
form.value += "[i] [/i]";
}
if (what == "url") {
form.value += "[url="http://"] [/url]";
}
if (what == "img") {
form.value += "[img= ] [/img]";
}
}
when you click one of the buttons, it wont insert the value into the textarea that is specified. The form id, name is correct, the textarea name is correct just cannot figure out why it wont work am i missing someting?
Edited by bigdfbc2008, 02 July 2008 - 01:05 AM.
