$("#actualizar_costo").live('click',function(){
var id= $("#actualizar_costo").attr("value");
$.ajax({
type: "POST",
url: "<?php echo PUBLIC_PATH . 'planificacion/planificacion/actualizar_costo/'; ?>"+ $("#actualizar_costo").attr("value"),
data: "id=" + $("#actualizar_costo").attr("value"),
success: function(html){
$("#div_actualizar").html(html);
}
});
});
});
</script>
Comentarios
.live()
method is deprecated. Use.on()
to attach event handlers. Users of older versions of jQuery should use.delegate()
in preference to.live()
.