I have the following code that I would like to pass the txtCodEmpreendedor and txtNameEmpreendedor IDs of the fields below as a parameter to the AddEprepresent / p>
<script>
function AdicionarEmpreendedor(codigo, item) {
//código
}
</script>
<div class="col-sm-2">
<label style="color:cornflowerblue">ID</label>
</div>
<div class="col-sm-2">
<input type="text" id="txtCodEmpreendedor" class="form-control" placeholder="Código" style="margin-left: -42px; width:92px;">
</div>
<input type="text" id="txtNomeEmpreendedor" class="form-control" placeholder="Nome Empreendedor" style="margin-left: -42px; width:273px;" />
</div>
</div>
<div class="modal-footer" style="margin-top: 165px" id="divBotao">
<button type="button" id="button" class="btn btn-secondary" data-dismiss="modal" onclick="AdicionarEmpreendedor();">Confirmar</button>
</div>