Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
08-29-2007, 08:50 AM #1
- Join Date
- Jul 2007
- Thanked 0 Times in 0 Posts
i want to be the messege in same page
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, 02:55 AM #2
Not sure if this is what you mean but.
But hopefully this short dom example will help you.
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()" />