There is such a block for turning the "pages" of the table. When a lot of them.
<div id="pages"> <div class="ui grid"> <div class="three wide column"> <div class="ui small right labeled input fluid"> <input type="text"> <div class="ui basic label">из 125</div> </div> </div> <div class="column"> <div class="ui small basic icon buttons"> <button class="ui button"> <i class="arrow left icon"></i> </button> <button class="ui button"> <i class="arrow right icon"></i> </button> </div> </div> </div> </div> Trying to make it reusable. In the method for setting the events of the buttons and input fields, pass the id and the function of the event. And here the oddities begin:
$("#pages") - finds the item
var node = $("#pages"); node.find("input"); does not find the item
var node = $("#pages"); node.find("button.ui.button").has("i.arrow.left.icon"); does not find the item
UPD
Regarding the dynamics, I forgot to mention: <div id="pages"> is a vue object, it has a condition, if the number of pages is more than 10, show as content <div class="ui grid"> , if less is another. And the strangest thing is that in the v-if block the search works, but in the v-else it does not.
The method of binding events to buttons is called so as to take into account the changes made:
vuePages.$nextTick(function(){initInput(jqSelector, event);}); At the same time, getting input from $ ("# pages") on pure js turned out without problems