R K
R K

Reputation: 9

Jquery to remove item from table

Image of the table here

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&amp;F=&amp;J=Products/ProductsSummary.asp&amp;Key58=2&amp;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

Answers (1)

Joshua Christensen
Joshua Christensen

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

Related Questions