Skip to content

Instantly share code, notes, and snippets.

@ilife5
Created February 19, 2016 10:01
Show Gist options
  • Save ilife5/0dd480d4a6499dac2309 to your computer and use it in GitHub Desktop.
Save ilife5/0dd480d4a6499dac2309 to your computer and use it in GitHub Desktop.
浏览器兼容性

firefox设置表单控件为disabled之后跳转页面,在新页面点击后退按钮后,被设置为disabled的控件并没有恢复

ref

解决方法

//在页面初始化的时候,将控件设置为可用
$(document).ready(function() {
    $('input', this).attr('disabled', false);  
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment