我有這樣的DropDownList在我看來......如何對DropDownList進行引用並將其傳遞給jQuery變量?
<div class="editor-field">
@Html.DropDownList("ProdutoId", String.Empty)
</div>
而且我想在我的jQuery函數引用這個DropDownList中......
function AddRow()
{
var produto = $("ProdutoId")
$('#tabelaPedidos').append('<tr><td>' + produto + '</td><td>daniel</td></tr>')
}
這可能嗎?
您可以通過ID谷歌的jQuery選擇。 –
你想要移動下拉列表還是複製它? – JamieD77