Fullcalendar- Show textbox when date is selected

Asked

Viewed 209 times

1

What I currently have is a prompt where we enter the name of the event when the date is selected:

select: function (start, end, allDay)
                        {
                            /*
                             after selection user will be promted for enter title for event.
                             */

                            var title = prompt("Titulo do Evento");

What I want is instead of appearing a prompt, appear a textbox Hidden on the page itself and insert the name there. The examples I found use functions that activate textbox’s if a checkbox is selected for example. But since it’s here with the calendar, I don’t know how I can do it

  • I edited your question, removing the snippet, because it makes no sense to use it when the code cannot be executed.

  • Want to show a textbox or use a popup/ modal window?

1 answer

-1

  • what I really wanted was for no popup/prompt to appear, and instead something to appear on the page itself

  • @Joãoalpoim the mechanism is similar, is to put a div Hidden in html, and display that div instead of doing var title = prompt("Event Title");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.