Hey guy
Okay, I want to add <b> </b> tags into a textbox without removing the current text there
I currently have the code
What need's adding to this to make it work correctly?Code:<script type="text/javascript" language="javascript"><!-- function ChgText() { var MyElement = document.getElementById("content"); MyElement.value = "<b> </b>"; return true; } //--></script> <p> <form action='addpost.php' method='post'> <h3>Title:</h3> <input type="button" onclick="ChgText()" value="b"/><br/> <input type='text' name='title' size='63.5' /><br> <h3>Body:</h3> <textarea id='content' name='content' rows='15' cols='50'></textarea> <br> <input type='submit' name='submit' value='Publish' /> </p>
Thanks
Shox.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks