Call the value of a button to an input in a modal

1

I think it's something simple: In the image number 1 I have my stored value an id that is general when clicking on the button, what I want is that the same value that is stored in the value call it at the value of my input so that I can have it inside my model

    
asked by David Jefferson Barrantes Delg 28.09.2018 в 01:49
source

1 answer

1

You could collect the value by clicking the button with jquery and load it at the same time in your input:

$("#boton-intervencion").click(function() {
    var aux = $('#btn').val();
    $('input-intervencion').val(aux);
    
answered by 28.09.2018 / 14:59
source