Ok, I have another idea(?)

wxdqz

New Member
Hi Dave,
thanx for your kind answer.

I'm trying to achieve what I want, by mean of accesing the id of the cell where the radiobutton is.

I'm working on this:

The cells which contain the radiobutton have an id like this:

celdaX-7

where X is the row where the rbtn is.

When I select any rbtn, I store its id in a global variable "Linea_Actual", like this:

function Update_Info(me) {
var Cadena = me.id;
Cadena = Cadena.replace('celda','');
Renglon_Actual = Cadena.replace('-7','');
Linea_Actual = parseInt(Renglon_Actual);
alert ('Line selected = ' + Linea_Actual);
}

When I click on the "delete record" link, I retrieve the value of the global variable "Linea_Actual"(the famous X value)
and apply the following sentence:

document.getElementById('Tabla_Estudios').deleteRow(Linea_Actual);

Now, I need to know how to loop the table in order to refresh the id's of every rbtn cell with the values: celda1-7, celda2-7, celda3-7 ... and so on.


Could you give me some ideas? I'm really a newby in the JS world.

Thanx in advance, and best regards.

Caliban
 
Back
Top