Can I create a text box where the user can't type inside the text box?

You can try putting the "readonly" attribute on your text field input type="text" READONLY id="my-date-field.

You can try putting the "readonly" attribute on your text field.

As far as I know, dateTextO. DateFormat: "dd/mm/yy" == false means nothing. You could use a regular expression to validate it, like this: var re = /^\d{1,2}\/\d{1,2}\/\d{2}$/; if(dateTextO.

Value! == '' &&!dateTextO.value. Match(re)) { errDateMsgO.

InnerHTML = "Can't Recognise the Date"; } else { errDateMsgO. InnerHTML = ""; } Edit: quick jsfiddle: http://jsfiddle.net/Vuhkw/ However, this won't actually check for real dates, just the format. I'd suggest actually checking server-side for real dates, since the JS can always be spoofed easily.

Thanks for your code. I think I will go with php instead because it also states while researching on google that its better using php for checking real dates. Thanks anyway.

– user1050384 Nov 17 at 20:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions