There was a problem using the bootstrap library. I have a modal window for adding users, there I use the drop down menu select:
<div class="tab-pane" id="addUsers"> <select name="userRol" class = "userRol"> <option class = "one"> - </option> <option class = "client">Клиент</option> <option class = "baer">Баер</option> </select></div> When I select all data and close the modal window, I use the .load method to reload part of the modal window:
$('#addUserModal').on('hidden.bs.modal', function (e) { $("#addUsers").load(" #addUsers"); }) so that all selects return to their original state. But when I close the modal window and a part of it reloads, the following code stops working:
$('.client').click(function(){ $.ajax({ dataType: 'json', data : { action : 'getInformUsersJsonClient' }, success : function(dataJson){ AddUsersList.onAjaxDone(dataJson); } }); }); although everything worked fine before rebooting.
In this case, two questions:
- Can someone know how to return select to its original state differently, without reloading the page or part of it?
- Why does
$('.client').clickstop after reboot?
PS: via the console, commands with $('.client') triggered, but when I look in the debugger, it does not work.