Prevent posting in main category
HI. From classipress 3.0.4 I have the following code:
in step1.php add:
<script type="text/javascript">
var dropdown = document.getElementById("cat");
var i;
for(i=dropdown.options.length-1;i>=0;i--)
{
if(dropdown.options[i].className === 'level-0')
dropdown[i].disabled="disabled";
}
</script>
after:
wp_dropdown_categories('show_option_none='.__('Sel ect one','cp').'&class=dropdownlist&orderby=name&order =ASC&hide_empty=0&hierarchical=1&exclude_tree='.CP _BLOG_CAT_ID);
}
?>
It work's for classipress 3.0.4 but not for 3.0.5.3 can someone help me fix it
?