无法检索网页上下拉框中某项的值
Unable to retrieve value of an of an item in dropdown box on a webpage
我正在使用html5和Knockout Js的网页上工作,并试图将值插入到SQL表中,但由于某些原因,我无法获得下拉框中选择的项目的id
例如,我有以下SQL表ProductOrder Product
1 VS
2 Netg
5 CCast
5 Firefox
6 App
现在使用一个Html页面,我有一个textbox
,我将在其中输入一个product name
和一个dropdown box
,在同一个表中有一个产品列表。当输入product name
并从dropdown
框中选择product
时,应该从dropdown
框中选择product
的textbox
和product order
中插入product name
。
我正在使用下面的脚本