Using PHP this code snippet will change the CSS by injecting the CSS via Jquery using PHP. This sounds very confusing, but usually used in conjunction with an Ajax request coming back.
1 2 3 4 5 6 7 8 9 |
<?php echo '<script> $("#addnewsched").css({"display":"block"}); $(".nonefound").css({"font-size":"18px","font-weight":"bold"}); $(".search_results_activity_indicator").css("position", "absolute").css("z-index", 9999999); </script>'; ?> |
If you have problems try this
1 2 3 4 5 6 7 8 9 |
<?php echo "<script> $(document).ready(function(){ $( '#notargets' ).css('display', 'none'); }); </script>"; ?> |