Tagged: datepicker
Hi,
sorry but I didn’t find the solution on forum. How to set the datepicker’s input field to read only? Guest are not choosing the date from the calendar insteed they write the birth date in the field. :D
Thanks,
Csaba.
Hey Nagytalp,
I’m not sure I understand what you mean, could you post a link to where we can see the element in question please?
Best regards,
Rikard
Hi,
Sorry for the late reply, I took a look at your date picker with Chrome, Firefox, and Edge on Windows 10, can I was unable to enter a date with the keyboard. What browser are you using?
Please try this code in the General Styling > Quick CSS field:
#top.page-id-168 #avia_5_1.avia_datepicker {
cursor: none !important;
}
Best regards,
Mike
Hi Mike,
thank You for the solution!
Basically I was late with the answer because I’m solved with a small script.
But without the CSS or jQuery snippet the field is writeable. This looks a small thing but in reality some guest are gaves it’s own birth date. And they cannot realize in the restaurant why don’t have a free table?
<script>
jQuery("#avia_5_1").prop("readonly", true);
</script>
I like the CSS way so now I learned a new thing from You.
Thank You for the time & your energy!
Cheers,
Csaba.