Highligt new row

Highligt new row

nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
edited November 2012 in Editor
Hi Allan,

I want to highlight the newly added row.

The code below does not work; and manually selecting the row (e.g. $('#tr_14).addClass('succes'); doesn't work either. Do you have a suggestion?

editor.on( 'onCreate', function (e, json, data) {
$('#'+json.id).addClass('success');
});

Replies

  • nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
    Note: the code works in Safari, but not in Firefox.
  • nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
    And, mysteriously, now it works in Firefox...
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Heh - does it work in all browsers for you now? It looks like it should.
This discussion has been closed.