私はこれについては初心者です。フォームが埋め込まれているダイアログにシェイク効果を適用しようとしていますが、これでは成功しません。
エフェクトをトリガーしようとすると
$( "#restore_password")。effect( "shake"、{回:3}、80);
フォームタグ内のフィールドのみが有効になりますが、ダイアログボックス自体は有効になりません。
私のdiv
<html>
<body>
<div id="restore_password" title="Confirmation code" class="ui-widget-content ui-corner-all" >
<form> <fieldset> <label for="code">Code</label> <input type="text" name="codecon" id="codecon" class="text ui-widget-content ui-corner-all" /> </fieldset>
</form>
</div>
</body>
</html>
私のダイアログ
$("#restore_password").dialog({
height: 220,
width: 310,
autoOpen: false,
modal: true,
draggable: false,
resizable: false,
show: 'puff',
hiden: 'puff',
buttons: {
"Confirm": function(){
$("#change_password").dialog('open');
},
"Cancel": function(){
$(this).dialog('close');
$("#forgot_data").dialog('close');
$("#dialog-form").dialog('open');
setTimeout(function(){
$("#name").focus();
}, 800);
}
},
close: function() {
allFields.val('').removeClass('ui-state-error');
}
});
何かアイデアはありますか?、それは役に立ちます。