Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function traer(id){
- $.ajax({
- url: '../server/info.php',
- dataType: "json",
- cache: false,
- processData: false,
- contentType: false,
- data: {id: id},
- type: 'POST',
- success: (data) =>{
- $("#" + id).html(data);
- },
- error: function(){
- alert("Error con el servidor");
- }
- })
- }
- document.getElementById("marca").onclick=function(event){traer("marca");};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement