Row background

Row background

horus1613horus1613 Posts: 19Questions: 6Answers: 0
edited May 2018 in Free community support

How can I paint over the entire row?

    $('row c[r^="E"]', sheet).each( function () {
                        // Get the value
                        if ( $('is t', this).text() == 'London' ) {
//                            $(this).attr( 's', '20' );
                              $(this).closest( 'tr ').attr( 's', '10' );
                        }
    });

This doesn't work!

This question has an accepted answers - jump to answer

Answers

  • horus1613horus1613 Posts: 19Questions: 6Answers: 0

    $(this).closest( 'tr' ).find('td').attr( 's', '10' );

    This doesn't work too...

  • colincolin Posts: 15,146Questions: 1Answers: 2,586
    Answer ✓

    Hi @horus1613 ,

    Take a look at this example here, this is doing what you're after. If you want to change the colour/style, they're listed on this page here.

    Cheers,

    Colin

  • horus1613horus1613 Posts: 19Questions: 6Answers: 0

    Colin, thanks!

This discussion has been closed.