Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function prueba(){
- var X="sebas";
- $.ajax({
- type: "POST",
- dataType: "json",
- url: "URL",
- success: function(dato){
- X=dato
- },
- timeout: 8000
- });
- return X;
- }
- $(document).ready(function(){
- val = $('elelemento').click(prueba);
- });
Add Comment
Please, Sign In to add comment