jQuery(document).ready(function(){ //QUEUE UP WHICH BORDER OPACITY OPTIONS LOAD DEPENDING ON THE SELECTION OF BORDER TYPE. if (jQuery('#bordertype').val() == 'dark' || jQuery('#bordertype').val() == 'none') { jQuery('input#lightopacity').parents('tr').hide(); } if (jQuery('#bordertype').val() == 'light' || jQuery('#bordertype').val() == 'none') { jQuery('input#darkopacity').parents('tr').hide(); } jQuery('#bordertype').change(function() { if (jQuery(this).val() == '3D') { jQuery('input#lightopacity').parents('tr').show(); jQuery('input#darkopacity').parents('tr').show(); } else if (jQuery(this).val() == 'light') { jQuery('input#lightopacity').parents('tr').show(); jQuery('input#darkopacity').parents('tr').hide(); } else if (jQuery(this).val() == 'dark') { jQuery('input#lightopacity').parents('tr').hide(); jQuery('input#darkopacity').parents('tr').show(); } else { jQuery('input#lightopacity').parents('tr').hide(); jQuery('input#darkopacity').parents('tr').hide(); } }); //QUEUE UP WHETHER OR NOT THE ROW HOVER EFFECT COLOR PICKER WILL LOAD DEPENDING ON THE SELECTION OF "SHOW ROW HOVER EFFECT?". if (jQuery('#showrowhovereffect').val() == 'no') { jQuery('input#rowhovercolor').parents('tr').hide(); } jQuery('#showrowhovereffect').change(function() { if (jQuery(this).val() == 'no') { jQuery('input#rowhovercolor').parents('tr').hide(); } else { jQuery('input#rowhovercolor').parents('tr').show(); } }); });