• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Hide/Show Textbox

Participant ,
Dec 01, 2008 Dec 01, 2008

Copy link to clipboard

Copied

I have 5 rows with 3 textbox each. I want to show the 1st row only until clicking the button. How can I do that?
TOPICS
Advanced techniques

Views

637

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 01, 2008 Dec 01, 2008

Copy link to clipboard

Copied

Time to visit the wonderful world of Google. You've obviously made no attempt to figure this out on your own. javascript, dhtml, visible

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 01, 2008 Dec 01, 2008

Copy link to clipboard

Copied

Hi,

You can do it like this,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 02, 2008 Dec 02, 2008

Copy link to clipboard

Copied

Hi

It works fine but every textbox will have the same name right? How can I generate textbox with different name so I can call them individually on the next page? Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 02, 2008 Dec 02, 2008

Copy link to clipboard

Copied

Hi,

First of all categorize your textboxes (like you have 3 text boxes in each column), so lets have that as,

text1C1 | text2C1 | text3C1
text1C2 | text2C2 | text3C2
text1C3 | text2C3 | text3C3

... etc

for that modify the "var textbox" variable as,

(Here I am just appending the "row" value to do the dynamic textbox name generation.)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 02, 2008 Dec 02, 2008

Copy link to clipboard

Copied

Hi,

earlier answer to a similar request:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=3&threadid=1403353&ente...

also includes sample on how to work with the dynamic fields on server-side.


cheers,
fober

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 02, 2008 Dec 02, 2008

Copy link to clipboard

Copied

LATEST
I did something similar today. I used <cfsavecontent>, toScript() in Cold Fusion, and innerHTML in js.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation