I have a submit form for my customers to track their orders with a tracking code. I want to show the result of order status which is checking from the shipping company's website.
input[type=text],
select,
textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
margin-top: 0px;
margin-bottom: 5px;
resize: vertical;
font-family: "Comic Sans MS", cursive, sans-serif;
font-size: 14px;
font-weight: bold;
}
input[type=submit] {
background-color: #000;
color: white;
padding: 10px 20px;
border: none;
border-radius: 20px;
font-weight: bold;
cursor: pointer;
}
input[type=submit]:hover {
color: #FFF;
background-color: #dd0017;
}
input[type=submit]:active {
box-shadow: inset 0px 0px 10px #000;
color: #FFF;
background-color: #dd0017;
}
.container {
border-radius: 5px;
background-color: rgba(241, 98, 114, 0.25);
padding: 0px;
margin-bottom: 20px;
}
<div class="container">
<div align="left" style="background-color:rgba(241, 98, 114, 0.25);padding:15px 0px 15px 5px;border-radius: 5px; border:1px solid #ff60cd;"><img align="left" alt="Sürat Kargo Takip" src="image\PNGLER\surat-kargo-takip-icon-200x40.png" style="float:none;" /></div>
<form action="http://www.suratkargo.com.tr/kargoweb/bireysel.aspx" align="left" onsubmit="window.open('','top','resizable=1, scrollbars=1,width=790,left=25,top=25')" target="top">
<h2><label for="takipnoalani">Takip NO :</label></h2>
<input id="takipnoalani" name="no" placeholder="Kargo Takip Numaranızı Yazınız..." type="text" />
<input name="action" style="font-size:16px;float:right;" type="submit" value="Getir" /> </form>
</div>
<div id="show_result" style="border:2px solid red;">
I want to show the result of query here<br/>But I couldn't :( <br/> And it would be better if this red bordered div is not shown until the customer click the "Getir" button.
</div>
My code is opening it in a new page. However, I want to show it on the same page exactly under that form with a new (or existing but hidden) div. I don't know if it is possible or not. I looked at every question similar to this, but couldn't find a solution.
I would greatly appreciate it if someone could help me.