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 7077645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:26:57+00:00 2026-05-28T06:26:57+00:00

I keep on getting a syntax error in this HTML/JavaScript code and I can’t

  • 0

I keep on getting a syntax error in this HTML/JavaScript code and I can’t seem to figure out why.

Any ideas?

<li onClick="document.getElementById(\'attribute83\').selectedIndex ="2", spConfig.configureElement($("attribute83")); class="some-css-class"><a href="http://www.example.com">Something</a></li>'
  • 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-28T06:26:58+00:00Added an answer on May 28, 2026 at 6:26 am

    Because your onClick handler has a syntax error.

    The web browser will take everything between the two quote on your onClick handler

    onClick="document.getElementById('attribute83').selectedIndex ="2"
    

    which means

    document.getElementById(\'attribute83\').selectedIndex ="2
    

    This isn’t valid javascript. If you’re using onclick handlers you can have the quotes used to enclose your html attribute (“) in your javascript.

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

Sidebar

Related Questions

I keep getting this error for the below MySQL SP any ideas? CREATE PROCEDURE
I keep getting the Syntax Error: Unexpected identifier JS error with this code: function
Can someone run their eyes over this statement? I keep getting a syntax error
I keep getting this NPE in my application and I can't seem to get
I keep getting this error compile error /Users/dean/src/carolian/app/views/layouts/events.html.erb:10: syntax error, unexpected ',', expecting ')'
I keep getting this error: Error: uncaught exception: Syntax error, unrecognized expression: [object Object]
I keep getting an error whenever I enter this code (I'm a python noob
Not sure what is wrong with this code. I keep getting the following error:
I'm making a login script and I keep getting this error Parse error: syntax
I can not figure out what is wrong with this syntax: $categorynameresult='SELECT DISTINCT cat_name

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.