On Dec 24, 1:58 pm, papu <papu143p...@gmail.com> wrote: > There is a <p></p> tag at the end of my page without any "id" how can > i delete that tag by javascript
// with prototype.js $$('p').last().remove(); // without prototype.js (function(){ var all = document.getElementsByTagName('p'); if (all.length) { var last = all[all.length-1]; last.parentNode.removeChild(last); } })(); -- kangax --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---