Copy Form before Post to Html

Asked

Viewed 33 times

0

How do I get the text of this form before sending it via post to another page?

<html>
    <div class="content-body">
        <div class="row">
            <div class="col-xs-12">
                <div class="wid-vectormap">
                    <div class="row">
                         <div class="col-xs-12 col-sm-9">
                                <textarea class="form-control" name="lista" id="lista" onkeyup="contar_total(this);" placeholder="CC|MESANO|CVV" class="form-control" rows="9">
                                </textarea>
                                ...
  • But where is the form? What exactly do you refer to?

  • copies the text the person type in the name="list input"

  • You mean in the textarea?

1 answer

0

Use document.getElementById("lista").value

<textarea id="lista" onblur="alert(document.getElementById('lista').value)">
</textarea>

  • And how do I save the result in txt?

  • @Evelyncarvalho I realize that she is new in the community, so to make the most of it consider taking a [tour] and visiting [help]. Open a new question by putting as many details as possible and especially the code you’re trying, good luck.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.