1

I have a page where I have a table and a grid, and when I click on row from the grid:

    gridApi.selection.on.rowSelectionChanged($scope, function(row) {
        $scope.formula = row.entity.formula;
        console.log(row.entity.factId);
    });

I want a certain cell from the table to be highlighted.

based on the factid attribute.

<div factid="1010898">320.00</div> 

What is the best angular way without using any external library like jquery, jqlite from angular being ok to use.

Thanks!

1
  • 1
    you can use jqlite $('[attr=val]') Commented Aug 12, 2015 at 11:38

2 Answers 2

1

Use can do with jqlite:

angular.element('[factid=1010898]')
Sign up to request clarification or add additional context in comments.

Comments

0

I did it with:

$('#report-content').find('[factid = ' + row.entity.factId + ']');

where "report-content" is the id of the container.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.