dorizo / jquery-option-tree

Automatically exported from code.google.com/p/jquery-option-tree
0 stars 0 forks source link

Does not properly handle array inputs. #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
To reproduce the problem:
1. create two inputs with identical 'name' attributes (such as "myValue[]")
2. use optionTree for one input
3. select an option from the first

Expected outcome: only one input will be assigned a value.
Actual outcome: both inputs are assigned the value.

Tested on Chrome/Win7.

Original issue reported on code.google.com by dego...@gmail.com on 8 May 2012 at 12:11

GoogleCodeExporter commented 8 years ago
This is caused by using the input name as its identifier. Perhaps this plugin 
could use the 'id' attribute, assigning one if not given by user.

Original comment by dego...@gmail.com on 8 May 2012 at 12:12