2
I have a function that generates dynamic form, this form is loaded via a GET via Jquery and shows the form mounted on a div.
I need to get only the source code of this DIV, someone knows a way to do this?
This is an example of the code you would need separate!
<div id="form_html">
<form name="form" action="PAGINA" method="post" id="se-form" data-toggle="validator">
<div class="row">
<div id="div_senha_usuario" class="form-group col-md-6">
<label>Senha usuario</label>
<input type="text" name="senha_usuario" class="form-control tipo_senha_usuario " id="senha_usuario" required="">
<div class="help-block with-errors se-text-p"></div>
</div>
<div id="div_data_cadastro" class="form-group col-md-6">
<label>Data cadastro</label>
<input type="text" name="data_cadastro" class="form-control tipo_data_cadastro " id="data_cadastro" required="">
<div class="help-block with-errors se-text-p"></div>
</div>
<div id="div_sec_atual" class="form-group col-md-6">
<label>Sec atual</label>
<input type="text" name="sec_atual" class="form-control tipo_sec_atual " id="sec_atual" required="">
<div class="help-block with-errors se-text-p"></div>
</div>
<div id="div_status_conta" class="form-group col-md-6">
<label>Status conta</label>
<input type="text" name="status_conta" class="form-control tipo_status_conta " id="status_conta" required="">
<div class="help-block with-errors se-text-p"></div>
</div>
<div class="form-group col-md-12">
<button class="btn btn-danger">Ação do botão</button>
</div>
</div>
</form>
Thanks @Sorack worked perfectly
– Marcos Paulo