Login   Register  
PHP Classes
elePHPant
Icontem

File: js.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Corey Hart  >  CSS Compressor  >  js.js  >  Download  
File: js.js
Role: Example script
Content type: text/plain
Description: Javascript for display page
Class: CSS Compressor
Compact the size of CSS definitions
Author: By
Last change:
Date: 4 years ago
Size: 346 bytes
 

Contents

Class file image Download
var checkbox1, checkbox2;

function forceOrder( el ) {
    if ( checkbox1 === undefined ){
        checkbox1 = document.getElementById('orderimportant1');
        checkbox2 = document.getElementById('orderimportant2');
    }

    checkbox1.checked = !el.checked;
    checkbox2.checked = !el.checked;
    checkbox1.disabled = el.checked;
    checkbox2.disabled = el.checked;
}