Posted By

ryarwood on 04/10/12


Tagged

php html if statement outside


Versions (?)

PHP if outside the HTML


 / Published in: PHP
 

  1. <?php if ($currentsubnav == "listing") { ?>
  2.  
  3. <script type="text/javascript">
  4. $(document).ready(function(){
  5. $('#content-10').load('/news/floor-plans-mobile/ #loadContainer');
  6. });
  7. </script>
  8.  
  9. <?php } else { ?>
  10.  
  11. <script type="text/javascript">
  12. $(document).ready(function(){
  13. $('#content-10').load('/news/floor-plans-mobile/ #loadContainer');
  14. });
  15. </script>
  16.  
  17. <?php } ?>

Report this snippet  

You need to login to post a comment.