Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3622598
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:16:47+00:00 2026-05-18T23:16:47+00:00

I want to check my jquery syntax somewhere. where i can check it ?

  • 0

I want to check my jquery syntax somewhere. where i can check it ?
I am getting syntax error in my script

  $(document).ready(function() 
  {
      var date = new Date();
      var d = date.getDate();
      var m = date.getMonth();
      var y = date.getFullYear();
      var officerid = document.getElementById('officerid').value;
      url = "/TasksToOfficer/Calender/" + officerid; 
      var currenteventIden = <%= serializer.Serialize( ViewData["iden"] ) %>
      var calendar = $('#calendar').fullCalendar
      (
        {
         header: {
                              left: 'prev,next today',
                              center: 'title',
                              right: 'month,agendaWeek,agendaDay',
                              border: 0
                          },

              eventClick: function(event, element) 
              {

              var title = prompt('Event Title:', event.title, { buttons: { Ok: true, Cancel: false} });
              var iden = event.id;
              if (title) 
              {
                  var st = event.start;
                  var ed = event.end;
                  var aldy = event.allDay;
                  var dt = event.date;

                  event.title = title;                        
                  calendar.fullCalendar('updateEvent',event);


                  var date = new Date(st);
                  var NextMonth = date.getMonth() + 1;
                  var dateString = (date.getDate()) + '/' + NextMonth + '/' + date.getFullYear();
                  var QueryStringForEdit=null;

                  QueryStringForEdit="officerid=" + officerid + "&description=" + title + "&date=" + dateString + "&IsForUpdate=true&iden=" + iden;


                  if (officerid) {$.ajax({
                                    type: "POST",
                                    url: "/TasksToOfficer/Create",
                                    data: QueryStringForEdit,
                                    success: function(result) 
                                            {if (result.success) $("#feedback input").attr("value", ""); // clear all the input fields on success
                                            },
                                    error: function(req, status, error) 
                                                {

                                                }
                                 });                                                                        
                                }
              }

          },
          selectable: true,
          selectHelper: true,
          select: function(start, end, allDay) {
                                                  var title = prompt('Event Title:', { buttons: { Ok: true, Cancel: false }}


                                                  );
                                                  if (title)
                                                     {
                                                           calendar.fullCalendar('renderEvent',
                                                           {
                                                               title: title,
                                                               start: start,
                                                               end: end,
                                                               allDay: allDay
                                                           },
                                                            false); // This is false , because do not show same event on same date after render from server side.
                                                           var date = new Date(start);

                                                             var NextMonth = date.getMonth() + 1; // Reason: it is bacause of month array it starts from 0

                                                              var dateString = (date.getDate()) + '/' + NextMonth + '/' + date.getFullYear();

                                                      if (officerid)
                                                       {
                                                          $.ajax({
                                                                        type: "POST",
                                                                        url: "/TasksToOfficer/Create",
                                                                        data: "officerid=" + officerid + "&description=" + title + "&date=" + dateString + "&IsForUpdate=false",
                                                                        success: function(result)
                                                                         {
                                                                          if (result.success) $("#feedback input").attr("value", ""); // clear all the input fields on success

                                                                        },
                                                                        error: function(req, status, error)
                                                                         {

                                                                        }
                                                                    });
                                                      }
                                                  }
                                                  calendar.fullCalendar('unselect');
                                              },
          editable: true,             
          events: url 
      });
  }); // Getting here syntax error

What should be that ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:16:48+00:00Added an answer on May 18, 2026 at 11:16 pm

    Please refer the JSFiddle

    http://jsfiddle.net/

    You have to select the jQuery version and then type the jQuery in javascript column. clicking on the JsLint button will pop you if any errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use a JQuery check all function in a form like this:
I want to check in client side(jQuery) whether return data from a PHP function
I'm using jQuery and I want to check the existence of an element in
I want to check if a given date is more than a month earlier
I want to check if an image exists using jquery. For example how do
Overview From time to time in jQuery I want to check a condition of
I want to check the file size before uploading it, so that i can
I want to create a jquery accordion dynamically by getting node names from the
I have written a jQuery plugin, but I want it to check if jQuery
I want to use jQuery Lint to check for possible jQuery errors. I wanted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.