Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Call jQuery var in php function
  2. <script>
  3.     var id=$(this).val();
  4.     $('#region').append(< ? php get_region(#####) ?>);
  5.   </script>
  6.        
  7. <script>
  8.     <?php $id = $whatever_the_id_is; ?>
  9.     $('#region').append(<?php get_region($id); ?>);
  10. </script>
  11.        
  12. <input type="hidden" value="<?php echo $a; ?>" />
  13.        
  14. <a title="<?php echo $a; ?>" />
  15.        
  16. <script language ="javascript"> var global_variable="<?php echo $a; ?>"; </script>