[英]Jquery to remove item from table
I have a drop down item in my system which builds a table of options on click , I would like to inject some Jquery that will remove some of the items in the list here is a example of one of the items created called (training) 我的系统中有一个下拉项目,它会在单击时构建一个选项表,我想注入一些Jquery来删除列表中的某些项目,此处是创建的一个项目(培训)的示例
<td class="ui-crmPopup-trigger" onclick="parent.Setopit_productid('Training','2','/CRM1/CustomPages/Products/ProductsSummary.asp?SID=94266470236396&F=&J=Products/ProductsSummary.asp&Key58=2&Prod_ProductId=2','Products','');$crmPopupParent.oPopupopit_productid.hide();">Training</td>
Can anyone help in what the code would look like? 谁能帮忙代码看起来像什么? Sorry if I have missed some key info.
抱歉,如果我错过了一些关键信息。
You could do something like this if all you're wanting to do is remove some text. 如果您只想删除一些文本,则可以执行以下操作。
https://plnkr.co/edit/WTZu33hxKJaiGcK5TESM https://plnkr.co/edit/WTZu33hxKJaiGcK5TESM
$('.remove-on-click').on('click', function(){
$(this).text('');
});
Or something like this, 或类似的东西,
$('.remove-on-load').text('');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.