2
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>
As a step the value of the variable description for him?
You need to use this modal.find not at the modal show event only makes $("#txtDescription"). val('VALOR_AQUI'); take a look -> http://jsfiddle.net/filadown/7ax1w7td/
– Gabriel Rodrigues