我有一个包含选择标签的数组。
Present Absent
我想要在JavaScript中创建一个JSON对象,其中包含两个字段:'uniqueIDofSelect'和'optionValue'。
我使用getElementsByName("status")并对其进行迭代。
编辑:我需要的输出格式如下:
[{"selectID":2,"OptionValue":"2"},
{"selectID":4,"optionvalue":"1"}]
依此类推...
用户名或邮箱地址
密码