Jump to content
php.lv forumi

dzēst un pievienot no formas


p4F

Recommended Posts

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 by p4F
Link to comment
Share on other sites

<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:/

Link to comment
Share on other sites

×
×
  • Create New...