Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
How do I show a pop up with modal? Problem with pop up and select command. FullCalendar.io

I am using FullCalendar.io to create a calendar, I found on the net a code implementing the SQL database that inserts data in the database from prompt. I would like to use modal instead but it doesn't work properly.

<script>
    $(document).ready(function() {
        var calendar = $('#calendar').fullCalendar({

            editable: true,
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
            },
            events: 'load.php',
            selectable: true,
            selectHelper: true,

            select: function(start, end, allDay) {
                var title = prompt("Enter Event Title");

                if (title) {
                    var start = $.fullCalendar.formatDate(start, "Y-MM-DD HH:mm:ss");
                    var end = $.fullCalendar.formatDate(end, "Y-MM-DD HH:mm:ss");
                    $.ajax({ **...**

I create a simple modal using bootstrap and I've included bootstrap and jquery. In a simple project, I simply used the command $('#modalID').modal('show') In a really similar code using FullCalendar.io too, they implement the modal simply with that line of code. the only big difference is how the calendar library is loaded. In the other project, the code is really similar except for the document ready function. I tried with a lot of combinations but none of them is working including using javascript to show some HTML styled as hidden (display: none). I need to open a pop up after the command select: What solutions do you suggest to me?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!