This question is locked. New answers and comments are not allowed.
Hi,
In my application, a DatePicker is used to save a specific date.
A Button is used to save the data. The user wanted to be able to use a shortcut, so I attachet the accesskey attribute to the button.
If I enter a value into the DatePicker and click on the button, the value is correctly fetched from the DatePicker.
Now the problem:
If I enter or change the value of the DatePicker and leave the cursor inside the input field and press the shortcut "Alt+s" instead of clicking the button, the old value instead of the new one is fetched.
Any ideas how I could avoid that problem and make the DatePicker update the value before I get the value using JavaScript?
I attached a small sample project for testing this.
Best regards
Kai
In my application, a DatePicker is used to save a specific date.
A Button is used to save the data. The user wanted to be able to use a shortcut, so I attachet the accesskey attribute to the button.
If I enter a value into the DatePicker and click on the button, the value is correctly fetched from the DatePicker.
Now the problem:
If I enter or change the value of the DatePicker and leave the cursor inside the input field and press the shortcut "Alt+s" instead of clicking the button, the old value instead of the new one is fetched.
Any ideas how I could avoid that problem and make the DatePicker update the value before I get the value using JavaScript?
I attached a small sample project for testing this.
Best regards
Kai