Как я могу получить ли, что я нажал внутри bootbox.confirm()
?Как получить объект внутри другого объекта в JQuery
<ul id="something">
<li>Result 1</li>
<li>Result 2</li>
<li>Result 3</li>
</ul>
$('#something li').click(function(){
bootbox.confirm("Are you sure?", function(result) {
if(result == true){
alert("You deleted" + /*here I want to get the item that was clicked*/);
}
});
});
Именно то, что я искал. спасибо –