Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

add name to textbox entry

Posted on 2015-01-07
1
Medium Priority
?
67 Views
Last Modified: 2015-01-21
Hi,

I am using cakephp and I want to click a button and a database field appears on the text area .
I just need to know how to use javascript to add  string to a text area . This is a js issue and not a cakephp

This is the textbox I have already which works fine along with the js not listed here
 echo $this->Form->input('message',  array('label'=>'Message','value'=>'','name'=>'message',
                       'type' => 'textarea','style'=>'width:300px; height:200px;',
                        'OnKeyUp'=> 'limitText(this.form.message,this.form.countdown2,150)',
                        'OnKeyDown'=> 'limitText(this.form.message,this.form.countdown2,150)'));

Open in new window

0
Comment
Question by:jagguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
nap0leon earned 2000 total points
ID: 40537749
<input id="val1" type="textarea" value="" size="150"/>
<script>
document.getElementById('val1').value = "value goes here";
</script>

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question