Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Fixing WordPress
    In reply to: My code not work
    Thread Starter dammion

    (@dammion)

    i’m really sorry.. this is the real code.. please anybody help me..

    <?php print wpbusdirman_post_list_categories(); ?>
    		<script type="text/javascript">
        var dropdown = document.getElementById("cat");
        function onCatChange() {
    		if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
    
    			location.href = "<?php get_category_link('cat="+dropdown.options[dropdown.selectedIndex].value+" ') ?>";
    		}
        }
        dropdown.onchange = onCatChange;
    	</script>

    Forum: Fixing WordPress
    In reply to: My code not work
    Thread Starter dammion

    (@dammion)

    i’m sorry.. this is the script..

    <?php print wpbusdirman_post_list_categories(); ?>
    <script type=”text/javascript”>
    var dropdown = document.getElementById(“cat”);
    function onCatChange() {
    if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {

    location.href = “<?php get_category_link(‘cat=?>”+dropdown.options[dropdown.selectedIndex].value+”<?php ‘) ?>”;
    }
    }
    dropdown.onchange = onCatChange;
    </script>

Viewing 2 replies - 1 through 2 (of 2 total)