![]() |
| |||||||
| Sponsored Links |
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
| hi i have dynamically created edit button used to edit a single coulmn in list. when click on edit button the column which has to be edit become editable textbox. what i want to do is at time only one editable text box should display.other texbozes if they are then should hide. Code: function fnToggle(vlCounter)
{
__________________ Love is physical attraction and mental destruction |
| Sponsored Links |
|
#2
| ||||
| ||||
| hi txtBoxRow is my span id.i want to show and hide this span id . |
|
#3
| ||||
| ||||
| If I understand you correctly, you have a few rows of data. You click one row, but then decide to click another row to edit. When doing this, you want the previous row to hid the textboxes, correct? If so, get the total count of your rows. Then, in your function, perform a For Loop to iterate through the fields and set the display:none; property. Be sure to have a clause in there so that when the counter reaches the row you want to leave editable, it will skip over it.
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.Join our Folding team: DeveloperBarn Folding |
| The Following User Says Thank You to jmurrayhead For This Useful Post: | ||
guddu (August 21st, 2008) | ||
|
#4
| ||||
| ||||
| JMH same logic i was trying but problem is in same function i m making text box display inline.see my function u will get idea Code: function fnToggle(vlCounter)
{
var i;
document.getElementById("txtRow_" + vlCounter ).style.display = "none";
document.getElementById("txtBoxRow_" + vlCounter ).style.display = "";
document.getElementById("RowEdit_" + vlCounter ).style.display = "none";
document.getElementById("RowSave_" + vlCounter ).style.display = "";
document.getElementById("RowCancel_" + vlCounter ).style.display = "";
for(i=0;i<=document.getElementById("HTotalCount").value;i++)
{
if(i != vlCounter )
{
//document.getElementById("txtBoxRow_" + i ).style.display = "none";
}
}
}
meant my loop not getting that span which is just above the loop has been displayed.how can i get that span. hope it make some sense. Thanks for your time. |
|
#5
| ||||
| ||||
| sorry gotted now this way eval(document.getElementById("txtBoxRow_" + i )).style.display = "none"; its my mistake thanks a lot. |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| edit with text box | guddu | JavaScript Programming | 10 | August 20th, 2008 11:15 AM |
| keep time and date | javier_83 | Microsoft Access | 6 | August 15th, 2008 06:03 PM |
| [JavaScript] JavaScript Date & Time Display | jmurrayhead | Code Samples | 0 | August 13th, 2008 08:46 PM |
| Time Entry Form | sbenj69 | Microsoft Access | 2 | July 14th, 2008 02:11 PM |
| Site Down Time | jmurrayhead | Announcements | 0 | March 30th, 2008 09:42 AM |