How to make edit button work in a modal window?

0

I'm not understanding how to make the "Edit" button work within modal ...

Screen (clicking on details opens this mode where you have the edit button): Mymodal: informationcontainedwithinthemodal:

    
asked by anonymous 27.08.2018 / 16:00

1 answer

1

You have to create / call some action on the EDIT button.

You can do this using JavaScript.

<button type="button" onclick="suafuncaoJS()" class="btn btn-dark">Editar</button>

I recommend making an ajax request. Search a little about it.

You can also put a href on it and send it to another page.

<button type="button" href="#paginadedestino" class="btn btn-dark">Editar</button>
    
27.08.2018 / 16:06