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

Hide/Show Textbox

Participant ,
Dec 01, 2008 Dec 01, 2008
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
740
Translate
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
Guest
Dec 01, 2008 Dec 01, 2008
Time to visit the wonderful world of Google. You've obviously made no attempt to figure this out on your own. javascript, dhtml, visible
Translate
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
Hi,

You can do it like this,

Translate
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
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
Translate
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
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.)
Translate
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
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
Translate
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
LATEST
I did something similar today. I used <cfsavecontent>, toScript() in Cold Fusion, and innerHTML in js.
Translate
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