Ok, i have made 4 buttons, little buttons called.
B =Bold, --- =Line, U = Underline, SFT = Space just above my textarea About Me.
[PHP] <tr>
<td><input type="button" name="Button" value="B" onclick="ChangeText(this.form.aboutme,);" /> <input type="button" name="Button" value="U" onclick="ChangeText(this.form.aboutme,;" />
<input type="button" name="Button" value="LINE" onclick="ChangeText(this.form.aboutme,[HR SIZE=1] [/HR];" /> <input type="button" name="Button" value="SPACE" onclick="ChangeText(this.form.aboutme,<BR />;"/>
<br />
<textarea name="aboutme" cols="50" rows="10" wrap="virtual" id="aboutme"></textarea></td></tr>[/PHP]
How can i target the textarea when a user hits the button?
So if help me1 is hilighted, and he/she hits B button it will change it to. help me! 3 1820
Heya, Breana.
I'm going to go ahead and move this thread to the JavaScript forum, where our resident Experts will be better able to help you out.
How can i target the textarea when a user hits the button? help me!
What do you mean by this line?
Kind regards,
Dmjpro.
To access the textarea, use - document.getElementById("aboutme");
You can style a textarea, but to create a WYSIWYG editor, you may need to learn about "designMode".
Sign in to post your reply or Sign up for a free account.
Similar topics
by: actionwoman63 |
last post by:
Dear all
I need to be able to check which one out of two submit buttons within
the same form was pressed in a javascript function prior to form
submission. And before I get flamed for not...
|
by: LRW |
last post by:
Having a problem getting a onSubmit function to work, to where it popsup a
confirmation depending on which radiobutton is selected.
Here's what I have:
function checkdel() {
if...
|
by: Syswatch |
last post by:
Hi out there...
I am pretty new to javascript, and is looking for some help here.
I have a problem, I need a small javascript, which checks if there is
any text in my textarea, and if it is NOT...
|
by: karen987 |
last post by:
Could someone please tell me what code to add here? I have a weblog, with daily news which readers can add comments to, which are stored in a database. The form to add the comments is on an ASP page,...
|
by: johnjsforum |
last post by:
Buddies,
I have a web page to create HTML buttons dynamically as in the “formDivColorPicker” function
////////////////////////////////////////////////////////////////////////////////////...
|
by: AlBen |
last post by:
Hello
sorry I don't know about javascript but I have to finish my work and
there I have some scripts
on my page I have a textarea form and a select form
when a user click in the select form...
|
by: moksha |
last post by:
Hi,
I am new to javascript and i am facing a problem in coding.
plz help me out.
I am using javascript for dynamically creating a table row which contains text boxes and radio...
|
by: maxx233 |
last post by:
Hello,
I'm developing a simple program to control a video switcher we have via RS232. All the backend control stuff is figured out just fine, the interface is what's giving me problems! I'm...
|
by: Jezternz |
last post by:
Okay, so basicly I have an array of functions, these functions are used to setup different menu's.
The very first function sets up the main menu and links to other menus/pages.
Note I have written...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| | |