I need help in the javascript code, I'm new and I do not know the syntax. What I need is to get the value of this button and play on the label id_user, how do I do it?
<button data-target="modal1" class="negar" value="{{item.id}}" class="btn modal-trigger blue"><i class=" large material-icons ">clear</i
<!-- Modal Structure -->
<div id="modal1" class="modal">
<div class="modal-content">
<h4>Motivo</h4>
<form method="POST" action="." class="viewform" id="formMotivo">
<label id=id_usuario> </label>
<button type="submit" name="salvar" class="btn btn-primary btn-lg">Salvar</button>
</form>
</div>
<div class="modal-footer"></div>
</div>
script>
$(document).ready(function(){
**document.getElementById("id_usuario").innerHTML = btn(negar).value;**
});