I have this code:
var deEdit = $("#opsEdit a, h1");
deEdit.live("click", function(){
$.ajax({ url: "codigo/file.php?v1=" + this.id + "&v2=" + HOW DO I GET THE H1 ELEMENT'S ID???,
cache: false,
success: function(respuesta){
$("#showData").html(respuesta);
}
});
})
and that’s it…. how do I get the H1 element’s ID? I know the A’s ID but what about the H1’s ID?, I tried this.next().id but didn’t work, any help here would be very appreciated.
1 Answer