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.
this is the function called on each click on edit button.Code:function fnToggle(vlCounter) {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 = ""; }frm = window.document.frmProtocolSettings for ( var f = 0; f < frm.elements.length; ++f ) { // get one field var fld = frm.elements[f]; // see if it is one of our txtbox fields if ( fld.name.substring(0,10) == "txtBoxRow_" ) { fld.style.display = "none"; } }



LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks