Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  10] [ 6]  / answers: 1 / hits: 59541  / 12 Years ago, mon, november 19, 2012, 12:00:00

Here is my website: http://splash.inting.org/wp/



I currently use the Bootstrap Datepicker (range branch) for my Call Date field and it's been great.



Although I have 2 Problems:



1) You can manually enter strings in the input field. This is weird since the original by eyecon disallowed it by entering the current date whenever you enter non-date values. I tried the readonly attribute and it doesn't seem to work because it won't allow you to select any date.



2) I limited the date input choices to Tuesdays and Thursdays by modifying an answer in another post. Upon loading the datepicker, the default date chosen is the current date, which can be any other day of the week. I want to avoid this and have only either Tuesdays or Thursdays selected.


More From » wordpress

 Answers
17

Override the key events on the input control.



<input onkeydown=return false ... />

[#81924] Friday, November 16, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
amari

Total Points: 736
Total Questions: 111
Total Answers: 90

Location: Saint Pierre and Miquelon
Member since Fri, Jan 28, 2022
2 Years ago
;