0
{name:'Second section',fields:['Column_x0020_2', 'Column_x0020_3'],mouseOver:'This is the second section',sectionStyle:",clickFunction: ’secondSectionClick(this)’}],settings:{bgColor: '#8EB4E8',hoverColor: '#FFF68F',selectedColor: '#C6E2FF',formBgColor: '#C6E2FF'},clickFunctionShared: ’clickFunctionShared(this)’};

What is syntax error in this? I am trying to build accordian for sharepoint list. Please help

4
  • 5
    sectionStyle is missing a quote, messing up the entire object so it's just a big syntax error, which you would have seen had you formatted your code properly. Commented May 24, 2015 at 15:41
  • ... and some of the quotes are the wrong ones. See, e.g., the end of your object. Commented May 24, 2015 at 15:43
  • Still No luckI am pasting my code in JSfiddle. Please help Commented May 24, 2015 at 16:50
  • jsfiddle.net/ewu12fbe/2 Commented May 24, 2015 at 17:04

1 Answer 1

1

There were quite a few syntax errors in that one little line. Here is my best guess of what you're actually trying to achieve.

{
    name: "Second section",
    fields: ["Column_x0020_2", "Column_x0020_3"],
    mouseOver: "This is the second section",
    sectionStyle: "",
    clickFunction: function () {
        secondSectionClick(this);
    },
    settings: {
        bgColor: "#8EB4E8",
        hoverColor: "#FFF68F",
        selectedColor: "#C6E2FF",
        formBgColor: "#C6E2FF"
    },
    clickFunctionShared: function () {
        clickFunctionShared(this);
    }
};
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.