I have three or four div or u l, l i /l i l i /l i /u l(u l=u+l and l i=l+i tags), If i mouse over on a particular div or u l or l i then it should display the modal(consist of edit and delete options) adjacent to that particular div u l or l i tags.
Я пытался Показывать модальное после наведения мыши, но модальное появляется в правой верхней части страницы.
// Код для Модели
<div class="modal fade col-sm-3" id="myModal" role="dialog" data-backdrop="">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body" data-toggle="dropdown" aria-expanded="false">
<a href="javascript:;" onclick="" title=""><i class="fa fa-trash-o"></i> Remove</a>
<a href="javascript:;" onclick="" title=""><i class="fa fa-trash-o"></i>Change Permissions</a>
<a href="javascript:;" onclick="" title=""><i class="fa fa-cog text-muted"></i> Settings</a>
</div>
</div>
</div>
</div>
//Код JQuery
$("#pwidcontainer").on("mouseenter", "li", function () { //Main outer Container consist li element
$('#myModal').modal('toggle');
$(".div_pw").addClass("after_modal_appended"); // one of the li of that main container
$(".modal-backdrop").appendTo(".div_pw"); //to append model adjucent to the li where we can make edit/delete
});
При наведении курсора мыши на любой div_pw должна отображаться модель (малая, которую я создал) рядом с этим конкретным div.