I fill in the inputs of my modal, as follows:
<input type="text" id="txtDescricao" name="txtDescricao" minlenght="4" required>
Script:
modal.find('.modal-body input[name="txtDescricao"]').val(descricao)
And when I have a label, like:
<label for="teste"></label>
How do I pass the value of the description variable to it?