下面是我的.ascx頁面的一些示例代碼,我試圖用jquery來執行一些操作,$("input")
很好地服務了我,但$("asp:Label")
不起作用。我應該包括序,使$("asp:Label")
工作未能得到.ascx服務器控件ID
<asp:Label ID="lblInvolvedMembers" runat="server"></asp:Label>
<asp:Label ID="lblAcceptedBy" runat="server"> </asp:Label>
<input type="text" id="family" value="family " />
<input type="button" id="family1" value="button" />
//here i am trying to get server control to perform some action, $("input") served me well but $("asp:Label") is not working. what should i include inorder to make $("asp:Label") work
$("asp:Label").hover(function() {
Tip.text('');
var ToolTipID = $(this).attr('id');
var height = $(this).height() + 10;
var offset = $(this).offset();
if (data[ToolTipID].split('<br\>').length - 1) {
var temp = data[ToolTipID].split('<br\>').length - 1;
height = temp * 10;
} else {
height = 10;
}
$("input").hover(function() {
Tip.text('');
var ToolTipID = $(this).attr('id');
var height = $(this).height() + 10;
var offset = $(this).offset();
if (data[ToolTipID].split('<br\>').length - 1) {
var temp = data[ToolTipID].split('<br\>').length - 1;
height = temp * 10;
} else {
height = 10;
}
奇怪的是你有'Visible =「false」'標籤? – 2013-03-05 09:02:22
哎呀,忽略它,只是一個示例數據,我會編輯它 – 2013-03-05 09:17:24