C# 在ColumHeader viewgrid中获取选定对象
我有以下代码:C# 在ColumHeader viewgrid中获取选定对象,c#,jquery,asp.net,gridview,C#,Jquery,Asp.net,Gridview,我有以下代码: $(document).ready(function(){ var input $("#<%=GridViewBin.ClientID%> tr th a").hover(function() { $("#<%=GridViewBin.ClientID%> tr th input").each(function (index) { //HERE I HAVE TO get se
$(document).ready(function(){
var input
$("#<%=GridViewBin.ClientID%> tr th a").hover(function() {
$("#<%=GridViewBin.ClientID%> tr th input").each(function (index) {
//HERE I HAVE TO get selected object, HOW?
input = $(this);
})
$(input).show();
},function() {
$(input).hide();
});
});
$(文档).ready(函数(){
变量输入
$(“#tr th a”).hover(函数(){
$(“#tr th input”)。每个(函数(索引){
//在这里我必须得到选定的对象,如何?
输入=$(此项);
})
$(输入).show();
},函数(){
$(输入).hide();
});
});
我想获取有关选择显示或隐藏的输入的ID。此输入位于gridview的列标题中
有什么线索或帮助吗?<代码>$(文档).ready(函数()){
$(document).ready(function(){
var input;
$("#<%=GridViewBin.ClientID%> tr th a").hover(function() {
$("#<%=GridViewBin.ClientID%> tr th input").each(function (index) {
//get selected object
input = $(this);
})
$(input).show();
},function() {
$(input).hide();
});
});
var输入;
$(“#tr th a”).hover(函数(){
$(“#tr th input”)。每个(函数(索引){
//获取选定对象
输入=$(此项);
})
$(输入).show();
},函数(){
$(输入).hide();
});
});
缺少“;”在var声明之后