I have the following jquery code:
$('.kv-editable-reset').addClass('green');
which should add the class 'green' to this element:
<button type="button" class="btn kv-editable-reset"></button>
but it does not work because .kv-editable-reset appears only later in the page, after click on the following button:
<button type="button" class="kv-editable-link"></button>
How can I detect elements that appears in the page only after another element has been clicked?