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

  • Home
  • SEARCH
  • 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 7041445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:02:48+00:00 2026-05-28T02:02:48+00:00

Im having a problem and cant seem to find it for the life of

  • 0

Im having a problem and cant seem to find it for the life of me because my code works in all other browsers except IE7. This is the error im getting “expected identifier, string or number”

This is my code.

    function calculate() {
        var principal = document.loandata.principal.value;
        var interest = document.loandata.interest.value / 100 / 12;
        var payments = document.loandata.years.value * 12;

        var x = Math.pow(1 + interest, payments);
        var monthly = (principal*x*interest)/(x-1);

        if (!isNaN(monthly) && 
            (monthly != Number.POSITIVE_INFINITY) &&
            (monthly != Number.NEGATIVE_INFINITY)) {

            document.loandata.payment.value = round(monthly);
            document.loandata.total.value = round(monthly * payments);
            document.loandata.totalinterest.value = 
                round((monthly * payments) - principal);
        } else {
            document.loandata.payment.value = "";
            document.loandata.total.value = "";
            document.loandata.totalinterest.value = "";
        }
    }

    function round(x) {
      return Math.round(x*100)/100;
    }

    jQuery(document).ready(function ($) {
    $('#button').click(function(){
          $('#option2').animate({
         height: '365px', }, 500 );
  });
});

But the problem seem to be where I have my animate function which is…

jQuery(document).ready(function ($) {
    $('#button').click(function(){
          $('#option2').animate({
         height: '365px', }, 500 );
  });
});

any help is greatly apprecaited.

  • 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-28T02:02:49+00:00Added an answer on May 28, 2026 at 2:02 am

    IE is confused by the extra comma:

    Change:

    height: '365px', }, 500 );
    

    To:

    height: '365px' }, 500 );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

been having this problem for a few days now and can't seem to find
I'm having a problem and can't seem to find the solution.. int linearSearch(nodeptr list,char
I'm having a problem in ruby and I can't seem to find the solution
I'm having a problem with my Seam code and I can't seem to figure
I seem to be having a strange problem which I can't fully understand. This
The problem I am having is that I can't seem to find how to
Having a problem here.... I can't seem to find a good way to 'add'
I'm having an interesting problem...that I can't seem to find the solution for. I'm
I am having a problem that I can't seem to figure out. What I
I'm having a problem with my site http://artygirl.co.uk/pixie/about/ I can't seem to get the

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.