我在网格中有一个输入元素。在click我打开一个 jQuery UI 对话框时,我无法传递值。
我怎样才能做到这一点?
<div id="basediv">
<table>
<tbody data-bind="foreach : palletList">
<tr>
<td>
<input class='smallInput2 ui-keyboard-input ui-widget-content
ui-corner-all' data-bind="value: parentRoll, click: openMyDialog">
</td>
</tr>
</tbody>
</table>
</div>
<div id="WDIV">
<input data-bind="value: $parent.parentRoll">
</div>
self.openMyDialog = function () {
$("#WDIV").dialog("open");
}