View Single Post
Old 12-09-2012, 07:32 AM   PM User | #1
html807
New to the CF scene

 
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
html807 is an unknown quantity at this point
how to add table row that contains 2 select option

Hi guys need some guidance PHP + javascript..

I am having trouble creating the form PHP and javascript, I have a form which contains some information that should be filled in by the user.

in the form, I have 2 select option.
Fyi, that select option use the database.
second select option is dependent to select option first. Or Dynamically populate dropdown dependent on another dropdown using databases.

what i want to do is, every user who enter data will create one ticket number. and one ticket number can have more than one product and request.

select option first is for PRODUCT
second select option is for REQUEST

if only one request and one product for one ticket number, I can easily enter information into the database without any error

but if there is a user who has more than one PRODUCT & REQUEST, then with the help of javascript I add table rows containing select option according to user requirement. This section is also very easy, I can add table row as user demand

but when a table row is increased, the state began uncomfortable, I can not select the information that is in the select option, an error message appears, makes me very sad

is there anything that can give me instructions to resolve this mess ???, it's almost a month but do not know how to fix that code..



to clarify information from the image above, I will explain briefly:
  1. Picture number 1 is the position where there are no additional rows of the table (the default state)
  1. see the plus and minus, useful to add or delete table rows
Attached Thumbnails
Click image for larger version

Name:	select_option.jpg
Views:	308
Size:	51.0 KB
ID:	11778  
html807 is offline   Reply With Quote