admin管理员组文章数量:1394065
Afternoon all.
Another hour, another question!
I have the following bit of jquery up and running that essentially 'resets' control contents.
tbxProdAC.Attributes.Add
("onclick", "$('#txtbxHowMany').val(''); SetRadioFocus('" + radProd.ClientID + "');");
I have a gridview that pops up occasionally (don't worry, I have got that bit under control!) so what I would like to do is amend the above code so that when I click on txtProdAC, GridView1 is removed.
Further to this, how would one implement a checked/unchecked function with jquery i.e. if tbxProdAC was click, radiobutton1 is unchecked?
Again, as always, apologies for my ignorance.
Afternoon all.
Another hour, another question!
I have the following bit of jquery up and running that essentially 'resets' control contents.
tbxProdAC.Attributes.Add
("onclick", "$('#txtbxHowMany').val(''); SetRadioFocus('" + radProd.ClientID + "');");
I have a gridview that pops up occasionally (don't worry, I have got that bit under control!) so what I would like to do is amend the above code so that when I click on txtProdAC, GridView1 is removed.
Further to this, how would one implement a checked/unchecked function with jquery i.e. if tbxProdAC was click, radiobutton1 is unchecked?
Again, as always, apologies for my ignorance.
Share Improve this question asked Nov 30, 2009 at 15:58 MrDeanMrDean 3055 gold badges8 silver badges23 bronze badges2 Answers
Reset to default 2$("#tbxProdAC").click(function(){
$('#GridView1').remove(); // or .toggle() to show/hide
$("#" + radProd.ClientID).attr("checked",false);
});
Try this:
$("tbxProdAC").click(function(){
//id gridview ending with 'GridView'
$("table[id$='GridView']").html("");
});
Regards
本文标签: Clear gridview using javascriptjqueryStack Overflow
版权声明:本文标题:Clear gridview using javascriptjquery - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744740222a2622564.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论