There are few times when I was thinking that using my textbox with Calendar control will only allow users to input values selected from that DatePicker calendar. If you are assuming this...read on.
One of the trick that automated test and testers use to test your user interface is .... guess....
If you were thinking "Copy-Paste" you are right.
To make the DatePicker to have only the values picked from your calendar, you have to be little tricky. This is what you should do..
In the textbox where you have your calendar control associated, make the textbox readonly="readonly". Now user can't input anything manually but JQuery will still be able to update the value with selected DatePicker value.
Simple. Isn't it.
No comments:
Post a Comment