Monday, August 29, 2011

dropdown select option in multiple rows in cakephp

i am showing multiple rows in a grid, and each row has a dropdown with
values 1,2,3,4,5..
the view looks like :

description ,
quantity,
price, total price
1.deal1 dropdownbox
[btnupdate] 100 100*dropdown
secelted valu
2.deal2 dropdownbox
[btnupdate] 200 200*dropdown
secelted valu
3.deal3 dropdownbox
[btnupdate] 300 300*dropdown
secelted valu

if i am changing the value of the deal1 or deal2 dropdown box, the
total price value is not changing, but if im changing the last one
i.e, deal3, then it is changing. after selecting the dropdown and if
user clicks btnupdate then the id of that row is passed to the
controller along with the selected value. but its happening for only
deal3 not for other deals. i want to update each row with the value
selected in that particular row dropdown.how to do this

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: