jQuery - Get URL String


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(document).ready(function() {
  2.  
  3. <?php
  4. if (isset($_GET["plan"])) {
  5. $finalPlan = $_GET["plan"];
  6. } else {
  7. $finalPlan = 'A';
  8. }
  9. ?>
  10.  
  11. currentPlan = "<?php echo($finalPlan); ?>";
  12.  
  13. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.