(function($) { $(document).ready(function () { $(".aiomh-ccb").click(function(){ var change = $(this).children('.aiomh-cb'); var show_child = $(this).parent().children('.aiomh-hcb'); if(change.val()=='0') { change.attr('value',1).removeClass('aiomh-cb-off').addClass('aiomh-cb-on'); if(show_child){ show_child.show('slow'); show_child.children('input').removeAttr('disabled'); } } else { change.attr('value',0).removeClass('aiomh-cb-on').addClass('aiomh-cb-off'); if(show_child){ show_child.hide('slow'); show_child.children('input').attr('disabled','disabled'); } } }); $("#aiomh_jpeg_quality_svalue").change(function(){ $("#aiomh_jpeg_quality_value").val($(this).val()); }); $("#aiomh_jpeg_quality_value").change(function(){ $("#aiomh_jpeg_quality_svalue").val($(this).val()); }); $(".show-change-prefix").click(function(){ $('body').animate({ scrollTop: 0 }, 800); $("#aiomh-form-prefix").show('slow'); }); $("#aiomh_change_lang").change(function(){ $('#submit').click(); }); }); })(jQuery);