Advertisement
foomagoo

jQuery checkbox enable

Mar 21st, 2011
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. add_action('admin_print_scripts-post.php', 'enable_checkbox_script');
  3. add_action('admin_print_scripts-post-new.php', 'enable_checkbox_script');
  4.  
  5. function enable_checkbox_script() {
  6. <script type="text/javascript" language="javascript">
  7. jQuery(document).ready(function() {
  8. jQuery('input[id^=in-couponbook-]').each(function() {
  9. jQuery('#'+this.id).removeAttr("disabled");
  10. });
  11. });
  12. </script>
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement