Reputation: 9
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)
<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.
Upvotes: 0
Views: 62
Reputation: 149
You could do something like this if all you're wanting to do is remove some text.
https://plnkr.co/edit/WTZu33hxKJaiGcK5TESM
$('.remove-on-click').on('click', function(){
$(this).text('');
});
Or something like this,
$('.remove-on-load').text('');
Upvotes: 1