p4F Posted June 19, 2008 Author Report Posted June 19, 2008 (edited) var s = 'this.parentNode.parentNode.rowIndex'; <tr><td><input type="hidden" name="cena_'+s+'" id="cena_'+s+'" value="'+cena+'" /></td></tr> kā būtu pareizi? Edited June 19, 2008 by p4F
bubu Posted June 19, 2008 Report Posted June 19, 2008 Vai tu saproti atšķirību starp var s = 'a'; un var s = a; ?
p4F Posted June 20, 2008 Author Report Posted June 20, 2008 kad es noņēmu pēdiņas tad vispār nestrādā
bubu Posted June 20, 2008 Report Posted June 20, 2008 Tad lieto debugeri vai veco labo alert metodi, lai noskaidrotu, kas tev nestrādā. Te neviens nav gaišreģis.
p4F Posted June 20, 2008 Author Report Posted June 20, 2008 <tr><td><input type="hidden" name="cena_'+this.parentNode.parentNode.rowIndex'+'" id="cena_'+this.parentNode.parentNode.rowIndex'+'" value="'+cena+'" /></td></tr> vajag tam sanākt cena_1 bet vienalga nav:/
p4F Posted June 20, 2008 Author Report Posted June 20, 2008 hmm var kautkā izdzēst row kur būtu <tr id='id4'>
Paulinjsh Posted June 20, 2008 Report Posted June 20, 2008 (edited) ar deleteNode() vai kko tamlīdzīgu. Edited June 20, 2008 by Paulinjsh
Recommended Posts