0
我在訪問JavaScript中的控件值時遇到了問題。在javascript中訪問控件的值問題
<tr>
<th>
Kullanici Adi:
</th>
<td>
<asp:TextBox ID="txtKullanici" Text="" runat="server" />
</td>
</tr>
<tr>
<th>
Sifre :
</th>
<td>
<asp:TextBox ID="txtSifre" Text="" runat="server" TextMode="Password" />
</td>
</tr>
我可以訪問txtSifre的文本,但我無法訪問txtKullaniciAdi的文本。有我的訪問代碼:
var Sifre = $("#<%=txtSifre.ClientID %>").val();
var Kul = $("#<%=txtKullanici.ClientID %>").val();
你有什麼想法嗎?
Çağın
我懷疑一個錯字。 – Lazarus 2010-11-03 12:39:39
你可以發佈呈現的HTML,而不是ASP代碼嗎? – lonesomeday 2010-11-03 12:39:41