I want to change to text from a button that is dynamically created by JS. I know how to bind a click event on the button, but don't know how to change the text when the page is loaded.
The html code of the button (this is dynamically created by a wordpress plugin).
<a href="#" class="btn loadMoreBtn" id="loadMored">Load more</a>
jQuery code:
jQuery('#loadMored').text('Toon meer producten');
<button>tag or a<input type="button">tag?document.readyevent listener