Guest User

Untitled

a guest
Jun 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. var frameState = $(this).attr('id');
  2.  
  3. <tr>
  4. <td>
  5. No Mats: <input type="radio" name="mattes-radio" align="middle"<?php if($_GET['mattes'] == 0){ echo 'checked="checked"';} ?> id="mattes-radio-0">
  6. </td>
  7. </tr>
  8. <tr>
  9. <td>
  10. Single Mat: <input type="radio" name="mattes-radio" <?php if($_GET['mattes'] == 1){ echo 'checked="checked"';} ?> id="mattes-radio-1">
  11. </td>
  12. </tr>
  13.  
  14.  
  15. $('#mattes-radio-0').click(function() {
  16. window.location = 'index-custom.php?mattes=0';
  17. });
  18.  
  19. $('#mattes-radio-1').click(function() {
  20. window.location = 'index-custom.php?mattes=1';
  21.  
  22. <input type="radio" id="mattes-radio-0" />
  23. <script>
  24. $("#mattes-radio-0").click(function(){
  25. var param = $(this).attr('id').replace("mattes-radio-","");
  26. window.location = 'index-custom.php?mattes='+param+'&framestate='+framestate;
  27. });
  28. </script>
Add Comment
Please, Sign In to add comment