GET the next INPUT element in a table TR

Hello,

My app has an order. This order has products, which is chosen in a
select list.

each product is added by a partial like this:

  1. product1

“Onchange” a product, the price is updated via ajax using rjs. thats
OK.
but, when I add another product, it update the first product price, of
course, because it have the same name and ID. But I can not change
this, so is there some way to get the next input element via
javascript? Selecting the next input element or something like this.

thnks a lot!!!

Have a look at jQuery, it’s great for stuff like this.

I did search for this at jquery but i can´t find this stuff… could
you show me how?

On 12 jul, 14:06, Max W. [email protected]