textarea inside a Popup and after entering value in textarea inside popup should save in main textarea
Posted on 2011-04-19
Opening a textarea for each link and Putting its value in another Textarea!
I am almost done with my work, I have a Code, where i click a link, it opens a POPUP just underneath it with the textarea inside it, i enter the value in the textarea nd on the close of the textarea which is in popup i want to make the values enter into the main textarea.
Please note the the main textareas name is dynamic i mean it is nested and name is dynamic,
Trying like this!
Created a Span used its rel attribute and had named it as contact-txtbox, but the id of the each textarea which is in popup is exacly the same as the mainb textarea, but only the names differ i mean liik ethis
main textarea ID - value_#start#
Nested textarea ID - valuenested_#start#
My try is quite Complex This:
1. Textarea Box above with unique name suppose values_#dynamic#
2. Now here is the link Edit, which has a unique id names as edit_#dynamic# and it is declared inside a Span tag, a Div tag can also be used, but just for sake i used span.
3. Now clicking on the Edit will open a POPUP just underneath the link and values it will start entring, it will 3 buttons, Save will close the popup, value get tranferred to the textarea main one and the popup will close.
4. Other buttons are rest & close which will do a cancel and resting,
5. The structure of the dynamic can be like this
Level 1 Textarea
and under each textarea, there will be a link, which will open its own popup and fll values inside which will be transferred to the main textarea on its closure, it is dynamic purely