Skip to content

[Help] how to get the calendar value #1525

Discussion options

You must be logged in to vote

You have to use calendar('get date') to get the selected date (https://fomantic-ui.com/modules/calendar.html#/usage).

If you want to use jQuery val(), you have to select from the actual input field, not the DOM element that invoke the calendar module.

Example with calendar('get date') method (https://jsfiddle.net/nqb0zvk2/).

Example with jQuery val() method (https://jsfiddle.net/nqb0zvk2/1/).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1525 on October 06, 2020 21:21.