prototype – delete table rows

To delete a table row with prototype:

javascript:Element.remove(tablerowdivname)

Also,
I set up some demos from various sources of other ways of manipulating tables They use these JavaScript functions and call various prototype based javascript.

function function1() {
document.all.myT.deleteRow(2);
}
function test(){
var d = $('myDiv');
alert(d.innerHTML);
d.hide();
d.show();
d.addClassName('active');
}

function function2(idname){
var d = $(idname);
alert(d.innerHTML);
d.hide();
d.addClassName('active');
}

using prototype-1.6.0.2.js from http://prototypejs.org/assets/2008/1/25/prototype-1.6.0.2.js

This entry was posted in WebTechnology. Bookmark the permalink.

One Response to prototype – delete table rows

  1. Pingback: links for 2009-06-07

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>