How do I adjust the css of td border of a specific row containing a specific text string, using jQuery?

On my site: you can see a table. I need to be able to do this using jQuery:

For the rows which contain the words: "di cui:" I would like to make that entire row appear as a long cell rather than a row divided into 3 cells. I don't mind if we can achieve that by just hiding the 2 vertical borders inside using css.

The table is auto-generated so I have to tinker with it using jquery as I can't edit the php code for this.

Any help would be appreciated.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
The correct way of doing this is to use colspan on the <td>

The other correct way of doing this is to give the targeted cells a class - i.e. when the table is built put the class in at that point
Then there is the WordPress way of doing things which is to cycle the server's CPU several orders of magnitude more than is necessary.
Try this.
jQuery('td:contains(di cui:)').each(
    function() {
      jQuery(this).css({borderRight: 0, borderLeft: 0})
      .next('td').css({borderRight: 0, borderLeft: 0})
      .next('td').css({borderRight: 0, borderLeft: 0});

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
badwolfffAuthor Commented:
I agree with your rantings :P
Julian HansenCommented:
You are welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.