
Untitled
By: a guest on
Jul 14th, 2012 | syntax:
None | size: 1.17 KB | hits: 31 | expires: Never
jQuery UI Button doesn't work after disabled/enabled from iframe
$(function(){
$('button#submit').button({disabled:true});
$('button#submit').click(function(){
console.log('It works!');
});
$('a#button-enable').click(function(){
$('button#submit').button({disabled:false});
});
});
$(function(){
$('button#submit').button("option", "disabled", true );
$('a#button-enable').click(function(){
$('button#submit').button("option", "disabled", false);
$('button#submit').click(function(){
alert('It works!');
});
});
});
$(function() {
var button = $('#submit').button({
disabled: true
}).click(function() {
alert('It Works');
});
$('#button-enable').click(function() {
button.button('enable');
});
});
$(function{
$('button, input[type="submit"]').button();
$('button#submit').button('disable');
$(document).bind('enableButton',function(){
$('button#submit').button('enable');
});
$('button#submit').click(function(){
//...
});
});
$(function(){
//...
parent.$(parent.document).trigger('enableButton');
});