# Creating text\_field by clicking button

**URL:** <https://www.ruby-forum.com/t/creating-text-field-by-clicking-button/189497>\
**Category:** Rails\
**Created:** [June 1, 2010, 8:50pm UTC](https://www.ruby-forum.com/t/creating-text-field-by-clicking-button/189497 "2010-06-01T20:50:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [June 1, 2010, 8:50pm UTC](https://www.ruby-forum.com/t/creating-text-field-by-clicking-button/189497/1 "2010-06-01T20:50:15Z")

</div>

Hi everyone,

I like to learn how to create text\_field by cliking button as dynamicly.  
I need “add” button which creates 3 text\_fields on the same line,  
“height” \* “width” = “size”

I like to click button and creating 3 text fileds one takes height, one  
takes width and third one calculate area with multiplication of two  
values.  
but I don t know how to create text fields by clicking button each time  
and add more than one line

---

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [June 1, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/creating-text-field-by-clicking-button/189497/2 "2010-06-01T21:01:08Z")

</div>

On 1 June 2010 19:50, Lamer L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## and add more than one line

I think you will have to use javascript or AJAX

Colin

---

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [June 1, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/creating-text-field-by-clicking-button/189497/3 "2010-06-01T21:01:43Z")

</div>

On Tue, Jun 1, 2010 at 11:50 AM, Lamer L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I like to learn how to create text\_field by cliking button as dynamicly.  
> I need “add” button which creates 3 text\_fields on the same line,  
> “height” \* “width” = “size”

This has nothing to do with Rails.

Find a book or tutorial on JavaScript.

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [June 1, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/creating-text-field-by-clicking-button/189497/4 "2010-06-01T21:19:04Z")

</div>

Colin L. wrote:

> On 1 June 2010 19:50, Lamer L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > ## and add more than one line
> 
> I think you will have to use javascript or AJAX
> 
> Colin

do you know where can I find some sample codes or documents?

---

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [June 1, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/creating-text-field-by-clicking-button/189497/5 "2010-06-01T21:28:03Z")

</div>

On Tue, Jun 1, 2010 at 12:19 PM, Lamer L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> do you know where can I find some sample codes or documents?

Seriously, WTF??

Use “javascript tutorial” as a Google search phrase and you’ll have  
enough examples and documents to last you through summer, at a  
minimum.

Plus, you’ll be able to tell all your friends, “Hey, I know how to use a  
search engine!” They’ll be impressed, trust me 🙂

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [June 1, 2010, 10:25pm UTC](https://www.ruby-forum.com/t/creating-text-field-by-clicking-button/189497/6 "2010-06-01T22:25:18Z")

</div>

Hassan S. wrote:

> On Tue, Jun 1, 2010 at 12:19 PM, Lamer L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > do you know where can I find some sample codes or documents?
> 
> Seriously, WTF??
> 
> Use “javascript tutorial” as a Google search phrase and you’ll have  
> enough examples and documents to last you through summer, at a  
> minimum.
> 
> Plus, you’ll be able to tell all your friends, “Hey, I know how to use a  
> search engine!” They’ll be impressed, trust me 🙂
> 
> –  
> Hassan S. ------------------------ removed\_email\_address@domain.invalid  
> twitter: @hassan

yeah, you already impressed me Hassan. I haven t known about that.

thanks for your helps.
