[jQuery] Re: multiply 2 input fields on change

2009-06-24 Thread Matthew
var totalPrice = $(UNITPRICE).val() * $(UNITQUANITY).val(); $(TOTALPRICE).val(totalPrice); On Jun 24, 2:03 pm, efet efetun...@gmail.com wrote: Hi, I have three input fields as UNITPRICE UNITQUANTITY and TOTALPRICE. UNITPRICE's value depends on a product chosen in the preceding tab. Now, I

[jQuery] Re: multiply 2 input fields on change

2009-06-24 Thread efet
Like this? $('#AddProduct').click(function() { var adding = $('div class=column width50input type=text id=PRODUCTNAME name=PRODUCTNAME value= class=width98 /input type=hidden class=PRODUCTID name=PRODUCTID /input type=hidden class=UNITPRICE name=UNITPRICE /smallSearch

[jQuery] Re: multiply 2 input fields on change

2009-06-24 Thread Mauricio (Maujor) Samy Silva
Live example at: http://jsbin.com/ahiyo/ Edit at: http://jsbin.com/ahiyo/edit Maurício -Mensagem Original- De: efet Para: jQuery (English) Enviada em: quarta-feira, 24 de junho de 2009 18:03 Assunto: [jQuery] multiply 2 input fields on change Hi, I have three input