Closed Thread Icon

Topic awaiting preservation: adding text to form via button (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8594" title="Pages that link to Topic awaiting preservation: adding text to form via button (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: adding text to form via button <span class="small">(Page 1 of 1)</span>\

 
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 04-02-2003 22:42

Sorry if this has been discussed (FAQ didn't have what I was looking for)

I have a form and I would like to add text to the form when I click a button.

Let's say that I have a text area and a button called "Break". When I click the button I would like to have it add a break tag
at the point where the cursor is. Make sense?

Thanks in advance.

Later,

C:\


~Binary is best~

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-02-2003 23:11

I basically followed this method


For what I did in this topic (I was adding links)



.:[ Never resist a perfect moment ]:.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 04-02-2003 23:15

Ah, gotcha. I was able to add links and everything. Just have to have something highlighted in order to put the tags around it.

This looks good. Thanks.

Later,

C:\


~Binary is best~

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 04-03-2003 00:14

CPrompt:

:FAQ: How do I insert text into a form field/textarea at the cursor?



___________________
Emps

FAQs: Emperor

« BackwardsOnwards »

Show Forum Drop Down Menu