View Full Version : i want to be the messege in same page

08-29-2007, 09:50 AM
hi guys i have a text box and below the text box i provide a link to add another text box.when i click that link it will dynamically add another text box.
In that text box i will give some number, this number checked with database.After checking,if that number exists in database just it will display right side of that text box like " number exists in database".how can i do this.
i done this by taking dummy page and in that i will display as like first page.but it is very coplex i think. is there any ideas how to display messege right side of text box in that same page only.

08-30-2007, 03:55 AM
Not sure if this is what you mean but.

But hopefully this short dom example will help you.


<script type="text/javascript">
function rightSide(){
document.getElementById("result").innerHTML="Number Found in Database";


<form method="post" action="yourscript.php">
<input type="text" name="data" /><span id="result"></span><br>
<input type="button" value="Click ME" onclick="rightSide()" />