Tôi đang cố gắng để có được một hộp thoại jquery để khởi động trên một nút bấm nhưng dường như không hoạt động. Bất kỳ trợ giúp sẽ được đánh giá cao:hộp thoại jquery trên nút bấm
$('#wrapper').dialog({
autoOpen: false,
title: 'Basic Dialog'
});
$('#opener').click(function() {
$(this).dialog('open');
return false;
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js"></script>
<button id="opener">Open the dialog</button>
<div id="wrapper">
<p>Some txt goes here</p>
</div>
Cảm ơn!
+1 @Sushanth! Đây là câu trả lời. – daniel0mullins
@Sushanth tốt sleuthing. Bạn phát hiện ra nó. +1 – gibberish