ASP.netを使用していて、ドロップダウンコントロールがあります。
<asp:DropdownList runat="server" ID = "fieldReadOnlyContent" Enabled="false" class = "attribute"><asp:ListItem value = "0">False</asp:ListItem><asp:ListItem value = "1">True</asp:ListItem></asp:DropdownList>
クライアント側のコントロールqithjqueryを介してドロップダウンコントロールを調整したかったのです。設定する必要のある値を取得します。
//d[3] will be either true or false.
$("#fieldReadOnlyContent").val(d[3]);
上記の試みでは、アイテムが適切に有効に設定されていないようです。どのように私はこれをしますか?