2
I would like to take the data typed in my form and put it in a json, but I don’t know how to do it. My HTML form is as follows:
<form action="" class="formContent" id="myform">
<div class="row form-input" id="form">
<div class="col-lg-4 col-sm-4 col-xs-12">
<label for="nome">Nome
<input type="name" id="nome" name="nome" placeholder="Digite seu nome" title="">
</label>
</div>
<div class="col-lg-4 col-sm-4 col-xs-12">
<label for="email">Email
<input type="email" id="email" name="email" placeholder="Digite seu email">
</label>
</div>
<div class="col-lg-4 col-sm-4 col-xs-12">
<label for="telefone">Telefone
<input type="text" id="telefone" name="telefone" placeholder="Digite seu telefone">
</label>
</div>
</div>
<div class="row form-Msg" id="form_two">
<div class="col-lg-12 col-xs-12" style="padding: 0;">
<label for="">Mensagem
<textarea id="mensagem" name="mensagem" rows="5" placeholder="Digite sua mensagem"></textarea>
</label>
</div>
<div class="col-lg-2">
<input type="submit" id="enviar" name="enviar" onclick="salvar();" value="Enviar">
<!-- <button href="#" class="FormSing" type="button" name="button">Enviar</button> -->
</div>
</div>
<!-- <button class="FormSing" type="button" name="button">Enviar</button> -->
</form>
Thank you so much is what I’ve been looking for for days. vlw even!!
– Laydianne