|
Do please read the posting guidelines regarding silly thread titles. The thread title is supposed to help people who have a similar problem in future. Yours is useless for this purpose. You can (and should) edit it to make it more meaningful.
BTW, when posting here please help us to help you by following the posting guidelines and wrapping your code in CODE tags. This means use the octothorpe or # button on the toolbar. You can (and should) edit your previous post.
if(this.value==""){
What if the user enters a space or a letter or a ?
<input type = "Submit" value = "Submit" />
This does nothing but as you are not actually submitting a form to a server you should use <input type = "button"
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 10-11-2012 at 07:55 AM..
|