0
jQuery UIを使用してポップアップダイアログフォームを作成しようとしていますが、生成されるボタンにはテキストが含まれていません。Jquery UIダイアログの空白ボタン
$(function(){
$("#dialog-form").dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
resizable: false,
buttons: {
"OK": function() {
alert("test");
$(this).dialog("close");
}
}
});
生成されたボタンのコードはこれです:また
<div class="ui-dialog-buttonset">
<button type="button" text="OK" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false">
<span class="ui-button-text"/>
</button>
</div>
、私はロードすると意味ページのロードが、私は「テスト」のポップアップを見たときに、ボタンハンドラのコードが実行されます私は、GoogleのAPI
コードでhttp://jsfiddle.netでこれを証明できますか?作品は私のために見つけるhttp://jsfiddle.net/N9emj/ – redsquare