SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // OPCION JQUERY :
  2. $('#iddelboton').on('click',function() {
  3. var variable = "<?php echo $variable; ?>";
  4. $.get( "documento.php?var="+variable, function( data ) {
  5. alert('get enviado');
  6. });
  7.  
  8.  
  9. });
  10.  
  11.  
  12. // OPCION JAVASCRIPT (VANILLA)
  13. var accion = function() {
  14. //accion q se ejecuta al bla bla.. XD
  15. }
  16. en el boton poner onclick="accion()"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top