Get the text the user wrote on a text box, and show it in another div with jQuery

Dj MasterLive

New Member
I am a newbie in jQuery. I have a simple form wrapped with this code:\[code\]<div class="search_container"> <form action="mode" onSubmit="calcRoute();return false;" id="routeForm"> <input type="text" id="routeStart" PlaceHolder="Pik?nisja" ><br/> <input type="text" id="routeEnd" class="routeEnd" PlaceHolder="Destinacioni"> <button id="submit"><i class="icon-map-marker"></i></button> </form></div>\[/code\]I want something like this:When somebody fills in the text boxes, and clicks the submit button, the text he put in the textboxes will be posted in another div. Ex. In the first text box I write "New York", and in the second one, I put "Florida".In a div under the form, I get this result:The first text (In this case New York), the second text (in this case Florida).I hope somebody can help me.Thanks.
 
Back
Top