Welcome Guest, Not a member yet? Register   Sign In
best way to handle several body onload
#3

[eluser]Namaless[/eluser]
Code:
jQuery(document).ready(function() {
    <?php if ( $page == 'test' ) : ?>
        jQuery('#test').show();
    <?php else : ?>
        jQuery('#test').hide();
    <?php endif; ?>
});

This is only simple example to use with
Code:
$this->load->view( 'jquery_script' );


Messages In This Thread
best way to handle several body onload - by El Forum - 03-09-2011, 11:58 AM
best way to handle several body onload - by El Forum - 03-09-2011, 12:51 PM
best way to handle several body onload - by El Forum - 03-09-2011, 01:05 PM
best way to handle several body onload - by El Forum - 03-09-2011, 02:25 PM
best way to handle several body onload - by El Forum - 03-09-2011, 02:42 PM
best way to handle several body onload - by El Forum - 03-09-2011, 02:54 PM
best way to handle several body onload - by El Forum - 03-09-2011, 03:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB